[Libreoffice-commits] core.git: basic/source

Noel (via logerrit) logerrit at kemper.freedesktop.org
Fri Feb 26 09:00:12 UTC 2021


 basic/source/inc/dlgcont.hxx    |    2 +-
 basic/source/inc/namecont.hxx   |    2 +-
 basic/source/inc/scriptcont.hxx |    2 +-
 basic/source/uno/dlgcont.cxx    |    2 +-
 basic/source/uno/scriptcont.cxx |    2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 568b4e8d7a98da3d7f8f80c7e5a13d01676e96d6
Author:     Noel <noel.grandin at collabora.co.uk>
AuthorDate: Thu Feb 25 14:49:36 2021 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Fri Feb 26 09:59:21 2021 +0100

    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 at collabora.co.uk>

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();
 }


More information about the Libreoffice-commits mailing list