summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-25 15:14:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-26 13:10:49 +0100
commitf77250f3159ec58f8d7d2770496fac64536b4f6f (patch)
tree5e772d3de6e17710e863f1d1435a94504e6ec001 /sc
parent1c8df3e58940bf6abdbda0b2f932a5990b577fae (diff)
loplugin:refcounting in svl
Change-Id: I0009464121faf6dd36793b031d892f492b56187c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111544 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/stlpool.hxx2
-rw-r--r--sc/source/core/data/stlpool.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/stlpool.hxx b/sc/inc/stlpool.hxx
index b4a5c312d6ea..e6d816096d9d 100644
--- a/sc/inc/stlpool.hxx
+++ b/sc/inc/stlpool.hxx
@@ -66,7 +66,7 @@ private:
virtual rtl::Reference<SfxStyleSheetBase> Create( const OUString& rName,
SfxStyleFamily eFamily,
SfxStyleSearchBits nMask) override;
- virtual SfxStyleSheetBase* Create( const SfxStyleSheetBase& rStyle ) override;
+ virtual rtl::Reference<SfxStyleSheetBase> Create( const SfxStyleSheetBase& rStyle ) override;
SfxStyleSheetBase* pActualStyleSheet;
ScDocument* pDoc;
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index 3654799790da..b4074c1773b5 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -107,7 +107,7 @@ rtl::Reference<SfxStyleSheetBase> ScStyleSheetPool::Create( const OUString& rN
return pSheet;
}
-SfxStyleSheetBase* ScStyleSheetPool::Create( const SfxStyleSheetBase& rStyle )
+rtl::Reference<SfxStyleSheetBase> ScStyleSheetPool::Create( const SfxStyleSheetBase& rStyle )
{
OSL_ENSURE( rStyle.isScStyleSheet(), "Invalid StyleSheet-class! :-/" );
return new ScStyleSheet( static_cast<const ScStyleSheet&>(rStyle) );