diff options
author | Xisco Fauli <anistenis@gmail.com> | 2016-05-26 01:22:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-26 07:46:38 +0000 |
commit | 132f7b2a8cc986ee79c4124ed2bc368d6dfaa418 (patch) | |
tree | 6b36702858406b6d32139a6cd67c687b257e8f88 /basic/source/basmgr/basmgr.cxx | |
parent | 205863589da24441546f77f36fda8bc27489ac93 (diff) |
tdf#89329: use unique_ptr for pImpl in basmgr
Change-Id: I2d6c6b997155183b058872db354de1b407998d3a
Reviewed-on: https://gerrit.libreoffice.org/25472
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/basmgr/basmgr.cxx')
-rw-r--r-- | basic/source/basmgr/basmgr.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/basic/source/basmgr/basmgr.cxx b/basic/source/basmgr/basmgr.cxx index 089910cc2428..3443016ee3fc 100644 --- a/basic/source/basmgr/basmgr.cxx +++ b/basic/source/basmgr/basmgr.cxx @@ -886,10 +886,6 @@ BasicManager::~BasicManager() { // Notify listener if something needs to be saved Broadcast( SfxSimpleHint( SFX_HINT_DYING) ); - - // Destroy Basic-Infos... - // In reverse order - delete mpImpl; } void BasicManager::LegacyDeleteBasicManager( BasicManager*& _rpManager ) @@ -915,7 +911,7 @@ bool BasicManager::HasExeCode( const OUString& sLib ) void BasicManager::Init() { - mpImpl = new BasicManagerImpl(); + mpImpl.reset( new BasicManagerImpl ); } BasicLibInfo* BasicManager::CreateLibInfo() |