summaryrefslogtreecommitdiff
path: root/sd
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 /sd
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 'sd')
-rw-r--r--sd/inc/stlpool.hxx2
-rw-r--r--sd/source/core/stlpool.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sd/inc/stlpool.hxx b/sd/inc/stlpool.hxx
index 6512ff74d9cc..dbe38d63828f 100644
--- a/sd/inc/stlpool.hxx
+++ b/sd/inc/stlpool.hxx
@@ -122,7 +122,7 @@ private:
void CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, StyleSheetCopyResultVector& rCreatedSheets );
void CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, StyleSheetCopyResultVector& rCreatedSheets, std::u16string_view rRenameSuffix );
- virtual SfxStyleSheetBase* Create(const OUString& rName, SfxStyleFamily eFamily, SfxStyleSearchBits nMask) override;
+ virtual rtl::Reference<SfxStyleSheetBase> Create(const OUString& rName, SfxStyleFamily eFamily, SfxStyleSearchBits nMask) override;
using SfxStyleSheetPool::Create;
virtual ~SdStyleSheetPool() override;
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx
index 8345ba75ed60..e03b4ca17399 100644
--- a/sd/source/core/stlpool.cxx
+++ b/sd/source/core/stlpool.cxx
@@ -130,7 +130,7 @@ SdStyleSheetPool::~SdStyleSheetPool()
DBG_ASSERT( mpDoc == nullptr, "sd::SdStyleSheetPool::~SdStyleSheetPool(), dispose me first!" );
}
-SfxStyleSheetBase* SdStyleSheetPool::Create(const OUString& rName, SfxStyleFamily eFamily, SfxStyleSearchBits _nMask )
+rtl::Reference<SfxStyleSheetBase> SdStyleSheetPool::Create(const OUString& rName, SfxStyleFamily eFamily, SfxStyleSearchBits _nMask )
{
return new SdStyleSheet(rName, *this, eFamily, _nMask);
}