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>
This commit is contained in:
Bernhard Widl
2017-03-27 18:40:08 +02:00
committed by Michael Stahl
parent 92893d7cb5
commit 6d5fc2acf2
2 changed files with 2 additions and 2 deletions

View File

@@ -145,7 +145,7 @@ public:
TUBES_DLLPUBLIC static void addSuffixToNames( const char* pName ); TUBES_DLLPUBLIC static void addSuffixToNames( const char* pName );
private: private:
static TeleManagerImpl* pImpl; static std::unique_ptr<TeleManagerImpl> pImpl;
static ::osl::Mutex& GetMutex(); static ::osl::Mutex& GetMutex();
}; };

View File

@@ -436,7 +436,7 @@ bool TeleManager::init( bool bListen )
void TeleManager::finalize() void TeleManager::finalize()
{ {
delete pImpl; pImpl.reset();
} }
bool TeleManager::createAccountManager() bool TeleManager::createAccountManager()