summaryrefslogtreecommitdiff
path: root/sc/inc/afmtuno.hxx
diff options
context:
space:
mode:
authorNoel <noel.grandin@collabora.co.uk>2021-03-02 09:20:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-03 07:36:59 +0100
commit4adfd75021d50e8e91c71bbe1526a1c752343059 (patch)
tree9e74b99d675322c37ffa8a36edd64baac7f3cb50 /sc/inc/afmtuno.hxx
parent2c1ed5a5dad827cde032f27a4348e81be15889bc (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/afmtuno.hxx')
-rw-r--r--sc/inc/afmtuno.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/afmtuno.hxx b/sc/inc/afmtuno.hxx
index f3d9ba2a3d20..f005773d9c91 100644
--- a/sc/inc/afmtuno.hxx
+++ b/sc/inc/afmtuno.hxx
@@ -45,8 +45,8 @@ class ScAutoFormatsObj final : public ::cppu::WeakImplHelper<
css::lang::XServiceInfo >
{
private:
- static ScAutoFormatObj* GetObjectByIndex_Impl(sal_uInt16 nIndex);
- static ScAutoFormatObj* GetObjectByName_Impl(std::u16string_view aName);
+ static rtl::Reference<ScAutoFormatObj> GetObjectByIndex_Impl(sal_uInt16 nIndex);
+ static rtl::Reference<ScAutoFormatObj> GetObjectByName_Impl(std::u16string_view aName);
public:
ScAutoFormatsObj();
@@ -96,7 +96,7 @@ private:
SfxItemPropertySet aPropSet;
sal_uInt16 nFormatIndex;
- ScAutoFormatFieldObj* GetObjectByIndex_Impl(sal_uInt16 nIndex);
+ rtl::Reference<ScAutoFormatFieldObj> GetObjectByIndex_Impl(sal_uInt16 nIndex);
public:
ScAutoFormatObj(sal_uInt16 nIndex);