Kaydet (Commit) e6928ce4 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1401328 Uncaught exception

Change-Id: I358b3c410bc7871c7184da4959b24b9f52b4a4d7
Reviewed-on: https://gerrit.libreoffice.org/45892Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 175c0541
......@@ -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;
......
......@@ -22,6 +22,7 @@
#include <sdmod.hxx>
#include <memory>
#include <o3tl/deleter.hxx>
#include <com/sun/star/uno/XInterface.hpp>
namespace sd {
......@@ -83,7 +84,7 @@ public:
private:
friend class SdGlobalResourceContainerInstance;
friend struct ::std::default_delete<SdGlobalResourceContainer>;
friend struct o3tl::default_delete<SdGlobalResourceContainer>;
class Implementation;
::std::unique_ptr<Implementation> mpImpl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment