diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-08-25 11:09:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-10-21 10:36:39 +0200 |
commit | e26f8d2592a3d7cc5b43b3246b364397dd704f0d (patch) | |
tree | 8677f333ba26a23f2999ab3a083696a8d2e29b74 /sc/source/ui/docshell/documentlinkmgr.cxx | |
parent | 3dce7bd77c56e61cd9457b03e8cf4137a7630eb9 (diff) |
coverity#1401307 document checked 'Uncaught exception'
markup std::unique_ptr where coverity warns a dtor might throw exceptions which
won't throw in practice, or where std::terminate is an acceptable response if
they do
Change-Id: Icc99cdecf8d8b011e599574f0a05b59efd1c65c2
Reviewed-on: https://gerrit.libreoffice.org/41561
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/docshell/documentlinkmgr.cxx')
-rw-r--r-- | sc/source/ui/docshell/documentlinkmgr.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/documentlinkmgr.cxx b/sc/source/ui/docshell/documentlinkmgr.cxx index c8ba3a48b6d4..aa508dca8ef0 100644 --- a/sc/source/ui/docshell/documentlinkmgr.cxx +++ b/sc/source/ui/docshell/documentlinkmgr.cxx @@ -22,7 +22,7 @@ #include <ddelink.hxx> #include <strings.hrc> #include <scresid.hxx> - +#include <o3tl/deleter.hxx> #include <svx/svdoole2.hxx> #include <vcl/layout.hxx> @@ -33,7 +33,7 @@ namespace sc { struct DocumentLinkManagerImpl { SfxObjectShell* mpShell; - std::unique_ptr<DataStream> mpDataStream; + std::unique_ptr<DataStream, o3tl::default_delete<DataStream>> mpDataStream; std::unique_ptr<sfx2::LinkManager> mpLinkManager; DocumentLinkManagerImpl(const DocumentLinkManagerImpl&) = delete; |