diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-03-02 09:20:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-03 07:36:59 +0100 |
commit | 4adfd75021d50e8e91c71bbe1526a1c752343059 (patch) | |
tree | 9e74b99d675322c37ffa8a36edd64baac7f3cb50 /sc/inc/styleuno.hxx | |
parent | 2c1ed5a5dad827cde032f27a4348e81be15889bc (diff) |
loplugin:refcounting in sc
Change-Id: I0b808785e54bf1dfc9387a649aacf731b2f34d12
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111801
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/inc/styleuno.hxx')
-rw-r--r-- | sc/inc/styleuno.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx index 84179f8a27fb..ee9adbeecbd2 100644 --- a/sc/inc/styleuno.hxx +++ b/sc/inc/styleuno.hxx @@ -56,9 +56,9 @@ class ScStyleFamiliesObj final : public ::cppu::WeakImplHelper< private: ScDocShell* pDocShell; - ScStyleFamilyObj* GetObjectByType_Impl(SfxStyleFamily nType) const; - ScStyleFamilyObj* GetObjectByIndex_Impl(sal_uInt32 nIndex) const; - ScStyleFamilyObj* GetObjectByName_Impl(std::u16string_view aName) const; + rtl::Reference<ScStyleFamilyObj> GetObjectByType_Impl(SfxStyleFamily nType) const; + rtl::Reference<ScStyleFamilyObj> GetObjectByIndex_Impl(sal_uInt32 nIndex) const; + rtl::Reference<ScStyleFamilyObj> GetObjectByName_Impl(std::u16string_view aName) const; public: ScStyleFamiliesObj(ScDocShell* pDocSh); @@ -110,8 +110,8 @@ private: ScDocShell* pDocShell; SfxStyleFamily eFamily; // Family - ScStyleObj* GetObjectByIndex_Impl(sal_Int32 nIndex); - ScStyleObj* GetObjectByName_Impl(const OUString& Name); + rtl::Reference<ScStyleObj> GetObjectByIndex_Impl(sal_Int32 nIndex); + rtl::Reference<ScStyleObj> GetObjectByName_Impl(const OUString& Name); public: ScStyleFamilyObj(ScDocShell* pDocSh, SfxStyleFamily eFam); |