diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-05 15:21:47 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-06 09:55:34 +0100 |
commit | e6928ce494339a74e5e5b1ab1d32af4adcef3e11 (patch) | |
tree | ff457e174b15aea0b21752e17b40513af4ff8f9b /include/comphelper | |
parent | 175c0541c7cb57e97ff04572cd012d7b5aaf9560 (diff) |
coverity#1401328 Uncaught exception
Change-Id: I358b3c410bc7871c7184da4959b24b9f52b4a4d7
Reviewed-on: https://gerrit.libreoffice.org/45892
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 'include/comphelper')
-rw-r--r-- | include/comphelper/unique_disposing_ptr.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/comphelper/unique_disposing_ptr.hxx b/include/comphelper/unique_disposing_ptr.hxx index 8434a1e916b3..f2c3adcc2a2c 100644 --- a/include/comphelper/unique_disposing_ptr.hxx +++ b/include/comphelper/unique_disposing_ptr.hxx @@ -17,6 +17,7 @@ #include <com/sun/star/frame/XDesktop.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> +#include <o3tl/deleter.hxx> #include <vcl/svapp.hxx> namespace comphelper @@ -25,7 +26,7 @@ namespace comphelper template<class T> class unique_disposing_ptr { private: - std::unique_ptr<T> m_xItem; + std::unique_ptr<T, o3tl::default_delete<T>> m_xItem; css::uno::Reference< css::frame::XTerminateListener> m_xTerminateListener; unique_disposing_ptr(const unique_disposing_ptr&) = delete; |