summaryrefslogtreecommitdiff
path: root/sd/source
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 /sd/source
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 'sd/source')
-rw-r--r--sd/source/ui/dlg/paragr.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/ui/dlg/paragr.cxx b/sd/source/ui/dlg/paragr.cxx
index 6a514cf2f937..a41e3c99d56f 100644
--- a/sd/source/ui/dlg/paragr.cxx
+++ b/sd/source/ui/dlg/paragr.cxx
@@ -37,7 +37,7 @@ public:
SdParagraphNumTabPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet);
static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet );
- static WhichRangesContainer GetRanges();
+ static const WhichRangesContainer & GetRanges();
virtual bool FillItemSet( SfxItemSet* rSet ) override;
virtual void Reset( const SfxItemSet* rSet ) override;
@@ -69,9 +69,10 @@ std::unique_ptr<SfxTabPage> SdParagraphNumTabPage::Create(weld::Container* pPage
return std::make_unique<SdParagraphNumTabPage>(pPage, pController, *rAttrSet);
}
-WhichRangesContainer SdParagraphNumTabPage::GetRanges()
+const WhichRangesContainer & SdParagraphNumTabPage::GetRanges()
{
- return WhichRangesContainer(svl::Items<ATTR_PARANUMBERING_START, ATTR_PARANUMBERING_END>);
+ static const auto gRanges = WhichRangesContainer(svl::Items<ATTR_PARANUMBERING_START, ATTR_PARANUMBERING_END>);
+ return gRanges;
}
bool SdParagraphNumTabPage::FillItemSet( SfxItemSet* rSet )