summaryrefslogtreecommitdiff
path: root/include/svl
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 /include/svl
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 'include/svl')
-rw-r--r--include/svl/style.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/svl/style.hxx b/include/svl/style.hxx
index 4cc856bd5641..bd1b0adb0790 100644
--- a/include/svl/style.hxx
+++ b/include/svl/style.hxx
@@ -237,7 +237,7 @@ protected:
SfxItemPool& rPool;
void ChangeParent(std::u16string_view rOld, const OUString& rNew, SfxStyleFamily eFamily, bool bVirtual = true);
- virtual SfxStyleSheetBase* Create( const OUString&, SfxStyleFamily, SfxStyleSearchBits );
+ virtual rtl::Reference<SfxStyleSheetBase> Create( const OUString&, SfxStyleFamily, SfxStyleSearchBits );
virtual SfxStyleSheetBase* Create( const SfxStyleSheetBase& );
virtual ~SfxStyleSheetBasePool() override;
@@ -308,7 +308,7 @@ class SVL_DLLPUBLIC SfxStyleSheetPool: public SfxStyleSheetBasePool
{
protected:
using SfxStyleSheetBasePool::Create;
- virtual SfxStyleSheetBase* Create(const OUString&, SfxStyleFamily, SfxStyleSearchBits mask) override;
+ virtual rtl::Reference<SfxStyleSheetBase> Create(const OUString&, SfxStyleFamily, SfxStyleSearchBits mask) override;
public:
SfxStyleSheetPool( SfxItemPool const& );