diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-06 13:39:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-11-06 15:45:24 +0100 |
commit | a6c3f0b62a53692efcc4056fdaade9263e200756 (patch) | |
tree | 6fde89683d83cb263dd5e90b8634cfc3c9eb1f28 /sw/source/uibase | |
parent | d5b55513cdc05e8d622897201e233eb0ad5147b7 (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 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/inc/column.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/drpcps.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/frmpage.hxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/inc/numpara.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/pgfnote.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/pggrid.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/swuiccoll.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/wrap.hxx | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/inc/column.hxx b/sw/source/uibase/inc/column.hxx index d45331cddfcd..6eabca9db70c 100644 --- a/sw/source/uibase/inc/column.hxx +++ b/sw/source/uibase/inc/column.hxx @@ -171,7 +171,7 @@ public: virtual ~SwColumnPage() override; static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet); - static WhichRangesContainer GetRanges() { return s_aPageRg; } + static const WhichRangesContainer & GetRanges() { return s_aPageRg; } virtual bool FillItemSet(SfxItemSet *rSet) override; virtual void Reset(const SfxItemSet *rSet) override; diff --git a/sw/source/uibase/inc/drpcps.hxx b/sw/source/uibase/inc/drpcps.hxx index afc7c6482253..4542ebc24749 100644 --- a/sw/source/uibase/inc/drpcps.hxx +++ b/sw/source/uibase/inc/drpcps.hxx @@ -151,7 +151,7 @@ public: virtual ~SwDropCapsPage() override; static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet); - static WhichRangesContainer GetRanges() { return s_aPageRg; } + static const WhichRangesContainer & GetRanges() { return s_aPageRg; } virtual bool FillItemSet( SfxItemSet *rSet) override; diff --git a/sw/source/uibase/inc/frmpage.hxx b/sw/source/uibase/inc/frmpage.hxx index 0ee921dc05aa..567b11a79c81 100644 --- a/sw/source/uibase/inc/frmpage.hxx +++ b/sw/source/uibase/inc/frmpage.hxx @@ -197,7 +197,7 @@ public: virtual ~SwFramePage() override; static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet); - static WhichRangesContainer GetRanges() { return s_aPageRg; } + static const WhichRangesContainer & GetRanges() { return s_aPageRg; } virtual bool FillItemSet(SfxItemSet *rSet) override; virtual void Reset(const SfxItemSet *rSet) override; @@ -324,7 +324,7 @@ public: virtual ~SwFrameAddPage() override; static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet); - static WhichRangesContainer GetRanges() { return s_aAddPgRg; } + static const WhichRangesContainer & GetRanges() { return s_aAddPgRg; } virtual bool FillItemSet(SfxItemSet *rSet) override; virtual void Reset(const SfxItemSet *rSet) override; diff --git a/sw/source/uibase/inc/numpara.hxx b/sw/source/uibase/inc/numpara.hxx index f6da0b9f7174..cb6524f3eeff 100644 --- a/sw/source/uibase/inc/numpara.hxx +++ b/sw/source/uibase/inc/numpara.hxx @@ -70,7 +70,7 @@ public: static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* rSet ); - static WhichRangesContainer GetRanges() { return s_aPageRg; } + static const WhichRangesContainer & GetRanges() { return s_aPageRg; } virtual bool FillItemSet( SfxItemSet* rSet ) override; virtual void Reset( const SfxItemSet* rSet ) override; diff --git a/sw/source/uibase/inc/pgfnote.hxx b/sw/source/uibase/inc/pgfnote.hxx index 0abb09a80a9d..77b367230c67 100644 --- a/sw/source/uibase/inc/pgfnote.hxx +++ b/sw/source/uibase/inc/pgfnote.hxx @@ -32,7 +32,7 @@ public: static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet); virtual ~SwFootNotePage() override; - static WhichRangesContainer GetRanges() { return s_aPageRg; } + static const WhichRangesContainer & GetRanges() { return s_aPageRg; } virtual bool FillItemSet(SfxItemSet *rSet) override; virtual void Reset(const SfxItemSet *rSet) override; diff --git a/sw/source/uibase/inc/pggrid.hxx b/sw/source/uibase/inc/pggrid.hxx index 58d5c9467188..52964df5b5cc 100644 --- a/sw/source/uibase/inc/pggrid.hxx +++ b/sw/source/uibase/inc/pggrid.hxx @@ -76,7 +76,7 @@ public: virtual ~SwTextGridPage() override; 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; diff --git a/sw/source/uibase/inc/swuiccoll.hxx b/sw/source/uibase/inc/swuiccoll.hxx index 74e6920b0275..8bdf59a22e40 100644 --- a/sw/source/uibase/inc/swuiccoll.hxx +++ b/sw/source/uibase/inc/swuiccoll.hxx @@ -56,7 +56,7 @@ public: virtual ~SwCondCollPage() override; static std::unique_ptr<SfxTabPage> Create(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet *rSet); - static WhichRangesContainer GetRanges() { return s_aPageRg; } + static const WhichRangesContainer & GetRanges() { return s_aPageRg; } virtual bool FillItemSet( SfxItemSet *rSet) override; virtual void Reset (const SfxItemSet *rSet) override; diff --git a/sw/source/uibase/inc/wrap.hxx b/sw/source/uibase/inc/wrap.hxx index f9ee8a69131f..d2142deabc6a 100644 --- a/sw/source/uibase/inc/wrap.hxx +++ b/sw/source/uibase/inc/wrap.hxx @@ -96,7 +96,7 @@ public: virtual bool FillItemSet(SfxItemSet *rSet) override; virtual void Reset(const SfxItemSet *rSet) override; - static WhichRangesContainer GetRanges() { return s_aWrapPageRg; } + static const WhichRangesContainer & GetRanges() { return s_aWrapPageRg; } void SetNewFrame(bool bNewFrame) { m_bNew = bNewFrame; } void SetFormatUsed(bool bFormat, bool bDrawMode) { m_bFormat = bFormat; m_bDrawMode = bDrawMode; } void SetShell(SwWrtShell* pSh) { m_pWrtSh = pSh; } |