summaryrefslogtreecommitdiff
path: root/cui/source/inc/paragrph.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-06 13:39:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-06 15:45:24 +0100
commita6c3f0b62a53692efcc4056fdaade9263e200756 (patch)
tree6fde89683d83cb263dd5e90b8634cfc3c9eb1f28 /cui/source/inc/paragrph.hxx
parentd5b55513cdc05e8d622897201e233eb0ad5147b7 (diff)
loplugin:passstuffbyref in svx
Change-Id: Ic5fd72cb64208c278ffc129591cd3d1131efdc08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176137 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui/source/inc/paragrph.hxx')
-rw-r--r--cui/source/inc/paragrph.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/inc/paragrph.hxx b/cui/source/inc/paragrph.hxx
index e219aa622e07..3a1ef5d455ad 100644
--- a/cui/source/inc/paragrph.hxx
+++ b/cui/source/inc/paragrph.hxx
@@ -102,7 +102,7 @@ public:
DECL_LINK(ELRLoseFocusHdl, weld::MetricSpinButton&, void);
- static WhichRangesContainer GetRanges() { return pStdRanges; }
+ static const WhichRangesContainer & GetRanges() { return pStdRanges; }
virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override;
@@ -165,8 +165,8 @@ public:
static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet );
virtual ~SvxParaAlignTabPage() override;
- static WhichRangesContainer GetRanges() { return pAlignRanges; }
- static WhichRangesContainer GetSdrRanges() { return pSdrAlignRanges; }
+ static const WhichRangesContainer & GetRanges() { return pAlignRanges; }
+ static const WhichRangesContainer & GetSdrRanges() { return pSdrAlignRanges; }
virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override;
@@ -201,7 +201,7 @@ public:
const SfxItemSet* rSet );
virtual ~SvxExtParagraphTabPage() override;
- static WhichRangesContainer GetRanges() { return pExtRanges; }
+ static const WhichRangesContainer & GetRanges() { return pExtRanges; }
virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override;
@@ -315,7 +315,7 @@ public:
static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet);
virtual ~SvxAsianTabPage() override;
- static WhichRangesContainer GetRanges();
+ static const WhichRangesContainer & GetRanges();
virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override;