summaryrefslogtreecommitdiff
path: root/sw/inc/finalthreadmanager.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-03 11:41:54 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-03 18:32:46 +0200
commit05fdfa9a66dc1fe299ad51f78be3053abfef090e (patch)
treecfde691a8fdca0939df8bbe06adfe13caa5e3983 /sw/inc/finalthreadmanager.hxx
parent2800609d391812e9bdd81266aff52fe05759d359 (diff)
loplugin:useuniqueptr in FinalThreadManager
Change-Id: Ided3df16fb42e1c3ba116cda68659b44b8ea6ea9 Reviewed-on: https://gerrit.libreoffice.org/52298 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/finalthreadmanager.hxx')
-rw-r--r--sw/inc/finalthreadmanager.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sw/inc/finalthreadmanager.hxx b/sw/inc/finalthreadmanager.hxx
index 26c526178ff0..b1f220b34f8d 100644
--- a/sw/inc/finalthreadmanager.hxx
+++ b/sw/inc/finalthreadmanager.hxx
@@ -28,6 +28,7 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <osl/mutex.hxx>
#include <list>
+#include <memory>
class CancelJobsThread;
class TerminateOfficeThread;
@@ -73,9 +74,9 @@ private:
osl::Mutex maMutex;
std::list< css::uno::Reference< css::util::XCancellable > > maThreads;
- CancelJobsThread* mpCancelJobsThread;
+ std::unique_ptr<CancelJobsThread> mpCancelJobsThread;
TerminateOfficeThread* mpTerminateOfficeThread;
- SwPauseThreadStarting* mpPauseThreadStarting;
+ std::unique_ptr<SwPauseThreadStarting> mpPauseThreadStarting;
bool mbRegisteredAtDesktop;
};