diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-25 14:49:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-26 09:59:21 +0100 |
commit | 568b4e8d7a98da3d7f8f80c7e5a13d01676e96d6 (patch) | |
tree | e51683ce8f2cca927e82693b62b8b09668d0bde6 /basic | |
parent | d1be3d80d0ca5ccd7639ede379a1befc48dc73f2 (diff) |
loplugin:refcounting in basic
Change-Id: Idbee5b35215f794e6785925dafb6f160caa24a22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111541
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/inc/dlgcont.hxx | 2 | ||||
-rw-r--r-- | basic/source/inc/namecont.hxx | 2 | ||||
-rw-r--r-- | basic/source/inc/scriptcont.hxx | 2 | ||||
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/basic/source/inc/dlgcont.hxx b/basic/source/inc/dlgcont.hxx index 1152dd82b2b3..4be36fec9160 100644 --- a/basic/source/inc/dlgcont.hxx +++ b/basic/source/inc/dlgcont.hxx @@ -56,7 +56,7 @@ class SfxDialogLibraryContainer : public SfxLibraryContainer virtual void importFromOldStorage( const OUString& aFile ) override; - virtual SfxLibraryContainer* createInstanceImpl() override; + virtual rtl::Reference<SfxLibraryContainer> createInstanceImpl() override; virtual void onNewRootStorage() override; diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx index 5a3ce4afd09e..169182464fee 100644 --- a/basic/source/inc/namecont.hxx +++ b/basic/source/inc/namecont.hxx @@ -297,7 +297,7 @@ protected: // #56666, Creates another library container // instance of the same derived class - virtual SfxLibraryContainer* createInstanceImpl() = 0; + virtual rtl::Reference<SfxLibraryContainer> createInstanceImpl() = 0; // Interface to get the BasicManager (Hack for password implementation) diff --git a/basic/source/inc/scriptcont.hxx b/basic/source/inc/scriptcont.hxx index 17f3089f1092..29a384942ad3 100644 --- a/basic/source/inc/scriptcont.hxx +++ b/basic/source/inc/scriptcont.hxx @@ -56,7 +56,7 @@ class SfxScriptLibraryContainer : public SfxLibraryContainer, public OldBasicPas virtual void importFromOldStorage( const OUString& aFile ) override; - virtual SfxLibraryContainer* createInstanceImpl() override; + virtual rtl::Reference<SfxLibraryContainer> createInstanceImpl() override; // Password encryption diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index ff89a780c2f5..cc03680f4cb6 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -335,7 +335,7 @@ void SfxDialogLibraryContainer::importFromOldStorage( const OUString& ) // Nothing to do here, old dialogs cannot be imported } -SfxLibraryContainer* SfxDialogLibraryContainer::createInstanceImpl() +rtl::Reference<SfxLibraryContainer> SfxDialogLibraryContainer::createInstanceImpl() { return new SfxDialogLibraryContainer(); } diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index eab8faf71735..cf26443777b6 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -311,7 +311,7 @@ Any SfxScriptLibraryContainer::importLibraryElement return aRetAny; } -SfxLibraryContainer* SfxScriptLibraryContainer::createInstanceImpl() +rtl::Reference<SfxLibraryContainer> SfxScriptLibraryContainer::createInstanceImpl() { return new SfxScriptLibraryContainer(); } |