summaryrefslogtreecommitdiff
path: root/sw
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 /sw
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 'sw')
-rw-r--r--sw/inc/docstyle.hxx2
-rw-r--r--sw/source/uibase/app/docstyle.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sw/inc/docstyle.hxx b/sw/inc/docstyle.hxx
index 90ad2f61ff7c..3ac7b308315d 100644
--- a/sw/inc/docstyle.hxx
+++ b/sw/inc/docstyle.hxx
@@ -198,7 +198,7 @@ class SwDocStyleSheetPool : public SfxStyleSheetBasePool
bool bOrganizer : 1; ///< Organizer
virtual rtl::Reference<SfxStyleSheetBase> Create( const OUString&, SfxStyleFamily, SfxStyleSearchBits nMask) override;
- virtual SfxStyleSheetBase* Create( const SfxStyleSheetBase& ) override;
+ virtual rtl::Reference<SfxStyleSheetBase> Create( const SfxStyleSheetBase& ) override;
using SfxStyleSheetBasePool::Find;
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index 102afc1a3253..e173eddfbc3d 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -2428,7 +2428,7 @@ SfxStyleSheetBase& SwDocStyleSheetPool::Make( const OUString& rName,
return *mxStyleSheet;
}
-SfxStyleSheetBase* SwDocStyleSheetPool::Create( const SfxStyleSheetBase& /*rOrg*/)
+rtl::Reference<SfxStyleSheetBase> SwDocStyleSheetPool::Create( const SfxStyleSheetBase& /*rOrg*/)
{
OSL_ENSURE(false , "Create in SW-Stylesheet-Pool not possible" );
return nullptr;