summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Widl <bernhard.widl@cib.de>2017-03-27 18:40:08 +0200
committerMichael Stahl <mstahl@redhat.com>2017-03-27 18:50:03 +0000
commit6d5fc2acf2354d72fb32e1cbae620d604c904cff (patch)
tree0c6f357306e28a2de9a38b7c950cdd6cf39605e4
parent92893d7cb556d612457d13dd6f3f0d60d8e0d3e3 (diff)
tdf#89329: use unique_ptr for pImpl in tubes/manager
Change-Id: Ic70883b58c9b3a0b56e6c07594a2758e04e7f5ee Reviewed-on: https://gerrit.libreoffice.org/35767 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--include/tubes/manager.hxx2
-rw-r--r--tubes/source/manager.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/tubes/manager.hxx b/include/tubes/manager.hxx
index 2ea14fce3888..063cf975e587 100644
--- a/include/tubes/manager.hxx
+++ b/include/tubes/manager.hxx
@@ -145,7 +145,7 @@ public:
TUBES_DLLPUBLIC static void addSuffixToNames( const char* pName );
private:
- static TeleManagerImpl* pImpl;
+ static std::unique_ptr<TeleManagerImpl> pImpl;
static ::osl::Mutex& GetMutex();
};
diff --git a/tubes/source/manager.cxx b/tubes/source/manager.cxx
index a742e2811491..08dacfb3ed58 100644
--- a/tubes/source/manager.cxx
+++ b/tubes/source/manager.cxx
@@ -436,7 +436,7 @@ bool TeleManager::init( bool bListen )
void TeleManager::finalize()
{
- delete pImpl;
+ pImpl.reset();
}
bool TeleManager::createAccountManager()