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/source/uno | |
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/source/uno')
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
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(); } |