summaryrefslogtreecommitdiff
path: root/sc/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 /sc/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 'sc/source')
-rw-r--r--sc/source/ui/inc/tabpages.hxx2
-rw-r--r--sc/source/ui/inc/tphf.hxx4
-rw-r--r--sc/source/ui/inc/tptable.hxx2
-rw-r--r--sc/source/ui/pagedlg/tphf.cxx4
4 files changed, 6 insertions, 6 deletions
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<SfxTabPage> 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<SfxTabPage> 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<SfxTabPage> 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<SfxTabPage> ScHeaderPage::Create(weld::Container* pPage, weld::D
return std::make_unique<ScHeaderPage>(pPage, pController, *rCoreSet);
}
-WhichRangesContainer ScHeaderPage::GetRanges()
+const WhichRangesContainer & ScHeaderPage::GetRanges()
{
return SvxHeaderPage::GetRanges();
}
@@ -254,7 +254,7 @@ std::unique_ptr<SfxTabPage> ScFooterPage::Create(weld::Container* pPage, weld::D
return std::make_unique<ScFooterPage>(pPage, pController, *rCoreSet);
}
-WhichRangesContainer ScFooterPage::GetRanges()
+const WhichRangesContainer & ScFooterPage::GetRanges()
{
return SvxHeaderPage::GetRanges();
}