summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-02-19 16:00:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-02-20 07:33:01 +0100
commit66217bc8222537d7358464131a7fa30917a3a960 (patch)
treef59c13617c8157f1ed2c56aa20077ba6d5b35dc9 /sw
parent52f887612a5dccdca15af0408ad92284277733c5 (diff)
loplugin:refcounting in svl
Change-Id: Iae192caa9d05f71ce02aae966ef1d71232d1a7b6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111222 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 30f176bf0633..90ad2f61ff7c 100644
--- a/sw/inc/docstyle.hxx
+++ b/sw/inc/docstyle.hxx
@@ -197,7 +197,7 @@ class SwDocStyleSheetPool : public SfxStyleSheetBasePool
SwDoc& rDoc;
bool bOrganizer : 1; ///< Organizer
- virtual SfxStyleSheetBase* Create( const OUString&, SfxStyleFamily, SfxStyleSearchBits nMask) override;
+ virtual rtl::Reference<SfxStyleSheetBase> Create( const OUString&, SfxStyleFamily, SfxStyleSearchBits nMask) override;
virtual 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 9d27ef06338b..102afc1a3253 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -2434,7 +2434,7 @@ SfxStyleSheetBase* SwDocStyleSheetPool::Create( const SfxStyleSheetBase& /*rOr
return nullptr;
}
-SfxStyleSheetBase* SwDocStyleSheetPool::Create( const OUString &,
+rtl::Reference<SfxStyleSheetBase> SwDocStyleSheetPool::Create( const OUString &,
SfxStyleFamily, SfxStyleSearchBits )
{
OSL_ENSURE( false, "Create in SW-Stylesheet-Pool not possible" );