diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-22 12:12:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-22 17:32:28 +0100 |
commit | 1571fd8bfdb1deb07b4d6a4abde4919d24550cea (patch) | |
tree | 948935177a86650075924356270c032281917900 /basic/source/basmgr | |
parent | dc37866f3266f92c71bb4b3cec2b869069230c28 (diff) |
loplugin:refcounting in basic
Change-Id: I0c1e41436ddae176695a90c120303727aa3bc2ad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111306
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic/source/basmgr')
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index 01ca8759e145..a70c49eb1149 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -292,15 +292,13 @@ namespace basic pBasicManager->SetStorageName( aAppBasic.PathToFileName() ); // Basic container - SfxScriptLibraryContainer* pBasicCont = new SfxScriptLibraryContainer( Reference< XStorage >() ); - Reference< XPersistentLibraryContainer > xBasicCont( pBasicCont ); + rtl::Reference<SfxScriptLibraryContainer> pBasicCont = new SfxScriptLibraryContainer( Reference< XStorage >() ); pBasicCont->setBasicManager( pBasicManager ); // Dialog container - SfxDialogLibraryContainer* pDialogCont = new SfxDialogLibraryContainer( Reference< XStorage >() ); - Reference< XPersistentLibraryContainer > xDialogCont( pDialogCont ); + rtl::Reference<SfxDialogLibraryContainer> pDialogCont = new SfxDialogLibraryContainer( Reference< XStorage >() ); - LibraryContainerInfo aInfo( xBasicCont, xDialogCont, static_cast< OldBasicPassword* >( pBasicCont ) ); + LibraryContainerInfo aInfo( pBasicCont, pDialogCont, static_cast< OldBasicPassword* >( pBasicCont.get() ) ); pBasicManager->SetLibraryContainerInfo( aInfo ); // global constants |