sd/inc/stlsheet.hxx | 2 +- sd/source/core/stlfamily.cxx | 2 +- sd/source/core/stlsheet.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
New commits: commit fd91c4937b942f7e28a1b6a30afddfb2abadfcf1 Author: Noel <noel.gran...@collabora.co.uk> AuthorDate: Tue Mar 2 09:23:06 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Wed Mar 3 09:33:29 2021 +0100 loplugin:refcounting in sd Change-Id: I5e259fc7028b75910efd6a99ed445690a9c496ce Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111803 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sd/inc/stlsheet.hxx b/sd/inc/stlsheet.hxx index dc32df9fa5eb..b6b693d4f937 100644 --- a/sd/inc/stlsheet.hxx +++ b/sd/inc/stlsheet.hxx @@ -72,7 +72,7 @@ public: static OUString GetFamilyString( SfxStyleFamily eFamily ); - static SdStyleSheet* CreateEmptyUserStyle( SfxStyleSheetBasePool& rPool, SfxStyleFamily eFamily ); + static rtl::Reference<SdStyleSheet> CreateEmptyUserStyle( SfxStyleSheetBasePool& rPool, SfxStyleFamily eFamily ); //Broadcast that a SdStyleSheet has changed, taking into account outline sublevels //which need to be explicitly broadcast as changing if their parent style was diff --git a/sd/source/core/stlfamily.cxx b/sd/source/core/stlfamily.cxx index 8e9150a292ef..164fb7814b41 100644 --- a/sd/source/core/stlfamily.cxx +++ b/sd/source/core/stlfamily.cxx @@ -429,7 +429,7 @@ Reference< XInterface > SAL_CALL SdStyleFamily::createInstance() throw IllegalAccessException(); } return Reference<XInterface>( - static_cast<XStyle*>(SdStyleSheet::CreateEmptyUserStyle(*mxPool, mnFamily))); + static_cast<XStyle*>(SdStyleSheet::CreateEmptyUserStyle(*mxPool, mnFamily).get())); } Reference< XInterface > SAL_CALL SdStyleFamily::createInstanceWithArguments( const Sequence< Any >& ) diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index 270b1c5d63b7..a470ff28c4f1 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -675,7 +675,7 @@ void SdStyleSheet::throwIfDisposed() throw DisposedException(); } -SdStyleSheet* SdStyleSheet::CreateEmptyUserStyle( SfxStyleSheetBasePool& rPool, SfxStyleFamily eFamily ) +rtl::Reference<SdStyleSheet> SdStyleSheet::CreateEmptyUserStyle( SfxStyleSheetBasePool& rPool, SfxStyleFamily eFamily ) { OUString aName; sal_Int32 nIndex = 1; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits