From a6c3f0b62a53692efcc4056fdaade9263e200756 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 6 Nov 2024 13:39:33 +0200 Subject: loplugin:passstuffbyref in svx Change-Id: Ic5fd72cb64208c278ffc129591cd3d1131efdc08 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176137 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/inc/tabpages.hxx | 2 +- sc/source/ui/inc/tphf.hxx | 4 ++-- sc/source/ui/inc/tptable.hxx | 2 +- sc/source/ui/pagedlg/tphf.cxx | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sc/source') diff --git a/sc/source/ui/inc/tabpages.hxx b/sc/source/ui/inc/tabpages.hxx index 37d751523469..4a613f344b12 100644 --- a/sc/source/ui/inc/tabpages.hxx +++ b/sc/source/ui/inc/tabpages.hxx @@ -30,7 +30,7 @@ public: const SfxItemSet* rAttrSet); virtual ~ScTabPageProtection() override; - static WhichRangesContainer GetRanges () { return pProtectionRanges; } + static const WhichRangesContainer & GetRanges () { return pProtectionRanges; } virtual bool FillItemSet ( SfxItemSet* rCoreAttrs ) override; virtual void Reset ( const SfxItemSet* ) override; diff --git a/sc/source/ui/inc/tphf.hxx b/sc/source/ui/inc/tphf.hxx index 9af97f6d7080..f5e46ded1478 100644 --- a/sc/source/ui/inc/tphf.hxx +++ b/sc/source/ui/inc/tphf.hxx @@ -56,7 +56,7 @@ class ScHeaderPage : public ScHFPage public: static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet ); ScHeaderPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); - static WhichRangesContainer GetRanges(); + static const WhichRangesContainer & GetRanges(); }; class ScFooterPage : public ScHFPage @@ -64,7 +64,7 @@ class ScFooterPage : public ScHFPage public: static std::unique_ptr Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet ); ScFooterPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rSet); - static WhichRangesContainer GetRanges(); + static const WhichRangesContainer & GetRanges(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/ui/inc/tptable.hxx b/sc/source/ui/inc/tptable.hxx index e843f769cb42..9e98c050a20e 100644 --- a/sc/source/ui/inc/tptable.hxx +++ b/sc/source/ui/inc/tptable.hxx @@ -29,7 +29,7 @@ public: static std::unique_ptr Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rCoreSet); virtual ~ScTablePage() override; - static WhichRangesContainer GetRanges () { return pPageTableRanges; } + static const WhichRangesContainer & GetRanges () { return pPageTableRanges; } virtual bool FillItemSet ( SfxItemSet* rCoreSet ) override; virtual void Reset ( const SfxItemSet* rCoreSet ) override; virtual DeactivateRC DeactivatePage ( SfxItemSet* pSet ) override; diff --git a/sc/source/ui/pagedlg/tphf.cxx b/sc/source/ui/pagedlg/tphf.cxx index dfd8868e3397..b6421f2b948e 100644 --- a/sc/source/ui/pagedlg/tphf.cxx +++ b/sc/source/ui/pagedlg/tphf.cxx @@ -238,7 +238,7 @@ std::unique_ptr ScHeaderPage::Create(weld::Container* pPage, weld::D return std::make_unique(pPage, pController, *rCoreSet); } -WhichRangesContainer ScHeaderPage::GetRanges() +const WhichRangesContainer & ScHeaderPage::GetRanges() { return SvxHeaderPage::GetRanges(); } @@ -254,7 +254,7 @@ std::unique_ptr ScFooterPage::Create(weld::Container* pPage, weld::D return std::make_unique(pPage, pController, *rCoreSet); } -WhichRangesContainer ScFooterPage::GetRanges() +const WhichRangesContainer & ScFooterPage::GetRanges() { return SvxHeaderPage::GetRanges(); } -- cgit v1.2.3