diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-15 16:15:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-01-17 10:16:35 +0200 |
commit | cf52cc9a0b1c8d46c9beb1d3583a77090a72314d (patch) | |
tree | dfdaf75109c57eaee1cf24c62ca576365ff10dc7 /include | |
parent | d72a2899dfd849056c6562bcd08537e1ab52100c (diff) |
loplugin:useuniqueptr in AsynchronLink
Change-Id: I911bb1f8ca98e368f8275083936a8eb9013f462c
Diffstat (limited to 'include')
-rw-r--r-- | include/svtools/asynclink.hxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/svtools/asynclink.hxx b/include/svtools/asynclink.hxx index d037504b0464..c229b25f3d1c 100644 --- a/include/svtools/asynclink.hxx +++ b/include/svtools/asynclink.hxx @@ -24,6 +24,7 @@ #include <tools/solar.h> #include <tools/link.hxx> #include <osl/mutex.hxx> +#include <memory> class Idle; class Timer; @@ -35,11 +36,11 @@ class SVT_DLLPUBLIC AsynchronLink { Link<void*,void> _aLink; ImplSVEvent* _nEventId; - Idle* _pIdle; + std::unique_ptr<Idle> _pIdle; bool _bInCall; bool* _pDeleted; void* _pArg; - ::osl::Mutex* _pMutex; + std::unique_ptr<::osl::Mutex> _pMutex; DECL_DLLPRIVATE_LINK( HandleCall_Idle, Timer*, void ); DECL_DLLPRIVATE_LINK( HandleCall_PostUserEvent, void*, void ); |