diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 09:40:29 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-09-30 11:24:33 +0200 |
commit | 3b8e53f66ffd4d631a850fe76250124dc4a195c3 (patch) | |
tree | 2613882a4876f0a66324b7e29e61c46b3ec451b0 /sw/source/uibase | |
parent | d242a19dbdd53b7ae0b6a6ceacca6aa1b6ac54a9 (diff) |
loplugin:constparams improve handling of pointer params
Change-Id: I4c0002e72703eded435bfe4985f5b0121bf8524b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122843
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/dochdl/swdtflvr.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/docvw/PostItMgr.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/drpcps.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/mailconfigpage.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/swdtflvr.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/uiborder.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/inc/wrap.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/olesh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewdraw.cxx | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/sw/source/uibase/dochdl/swdtflvr.cxx b/sw/source/uibase/dochdl/swdtflvr.cxx index 13c0584fb562..913c94135acd 100644 --- a/sw/source/uibase/dochdl/swdtflvr.cxx +++ b/sw/source/uibase/dochdl/swdtflvr.cxx @@ -4182,7 +4182,7 @@ void SwTransferable::CreateSelection( SwWrtShell& rSh, pNew->CopyToPrimarySelection(); } -void SwTransferable::ClearSelection( SwWrtShell& rSh, +void SwTransferable::ClearSelection( const SwWrtShell& rSh, const SwFrameShell * _pCreatorView) { SwModule *pMod = SW_MOD(); diff --git a/sw/source/uibase/docvw/PostItMgr.cxx b/sw/source/uibase/docvw/PostItMgr.cxx index 3dd0944d052f..d63a01644293 100644 --- a/sw/source/uibase/docvw/PostItMgr.cxx +++ b/sw/source/uibase/docvw/PostItMgr.cxx @@ -495,7 +495,7 @@ void SwPostItMgr::Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) } } -void SwPostItMgr::Focus(SfxBroadcaster& rBC) +void SwPostItMgr::Focus(const SfxBroadcaster& rBC) { if (!mpWrtShell->GetViewOptions()->IsPostIts()) { diff --git a/sw/source/uibase/inc/drpcps.hxx b/sw/source/uibase/inc/drpcps.hxx index 4c2274cf25aa..d1b0a09d082a 100644 --- a/sw/source/uibase/inc/drpcps.hxx +++ b/sw/source/uibase/inc/drpcps.hxx @@ -135,7 +135,7 @@ friend class SwDropCapsPict; virtual DeactivateRC DeactivatePage(SfxItemSet *pSet) override; void FillSet( SfxItemSet &rSet ); - void ModifyEntry(weld::Entry& rEdit); + void ModifyEntry(const weld::Entry& rEdit); DECL_LINK(ClickHdl, weld::Toggleable&, void); DECL_LINK(MetricValueChangedHdl, weld::MetricSpinButton&, void); diff --git a/sw/source/uibase/inc/mailconfigpage.hxx b/sw/source/uibase/inc/mailconfigpage.hxx index 47c1f8bdaaa5..734b39aa9e67 100644 --- a/sw/source/uibase/inc/mailconfigpage.hxx +++ b/sw/source/uibase/inc/mailconfigpage.hxx @@ -61,7 +61,7 @@ public: class SwMailConfigDlg final : public SfxSingleTabDialogController { public: - SwMailConfigDlg(weld::Window* pParent, SfxItemSet& rSet); + SwMailConfigDlg(weld::Window* pParent, const SfxItemSet& rSet); }; #endif diff --git a/sw/source/uibase/inc/swdtflvr.hxx b/sw/source/uibase/inc/swdtflvr.hxx index 7f410739f079..5c58acf2a572 100644 --- a/sw/source/uibase/inc/swdtflvr.hxx +++ b/sw/source/uibase/inc/swdtflvr.hxx @@ -230,7 +230,7 @@ public: /* #96392# Added pCreator to distinguish SwFrameShell from SwWrtShell. */ static void CreateSelection( SwWrtShell & rSh, const SwFrameShell * pCreator = nullptr ); - static void ClearSelection( SwWrtShell& rSh, + static void ClearSelection( const SwWrtShell& rSh, const SwFrameShell * pCreator = nullptr ); // the related SwView is being closed and the SwTransferable is invalid now diff --git a/sw/source/uibase/inc/uiborder.hxx b/sw/source/uibase/inc/uiborder.hxx index e0b98570dc26..bd23157b7f37 100644 --- a/sw/source/uibase/inc/uiborder.hxx +++ b/sw/source/uibase/inc/uiborder.hxx @@ -30,7 +30,7 @@ public: // SW_BORDER_MODE_TABLE // SW_BORDER_MODE_FRAME - SwBorderDlg(weld::Window* pParent, SfxItemSet& rSet, SwBorderModes nType); + SwBorderDlg(weld::Window* pParent, const SfxItemSet& rSet, SwBorderModes nType); virtual ~SwBorderDlg() override; }; diff --git a/sw/source/uibase/inc/wrap.hxx b/sw/source/uibase/inc/wrap.hxx index d4d63ad16945..c947eee3a896 100644 --- a/sw/source/uibase/inc/wrap.hxx +++ b/sw/source/uibase/inc/wrap.hxx @@ -29,7 +29,7 @@ class SwWrtShell; class SwWrapDlg final : public SfxSingleTabDialogController { public: - SwWrapDlg(weld::Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, bool bDrawMode); + SwWrapDlg(weld::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pSh, bool bDrawMode); }; // circulation TabPage diff --git a/sw/source/uibase/shells/olesh.cxx b/sw/source/uibase/shells/olesh.cxx index 4fd3b434c32e..acddd3eb6975 100644 --- a/sw/source/uibase/shells/olesh.cxx +++ b/sw/source/uibase/shells/olesh.cxx @@ -34,7 +34,7 @@ using namespace sfx2::sidebar; namespace { -bool inChartContext(SwView& rViewShell) +bool inChartContext(const SwView& rViewShell) { SidebarController* pSidebar = SidebarController::GetSidebarControllerForView(&rViewShell); if (pSidebar) diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx index ccc82d329024..e45bc9adbe35 100644 --- a/sw/source/uibase/uiview/viewdraw.cxx +++ b/sw/source/uibase/uiview/viewdraw.cxx @@ -70,7 +70,7 @@ using namespace ::com::sun::star; // Execute Drawing-Ids -void SwView::ExecDraw(SfxRequest& rReq) +void SwView::ExecDraw(const SfxRequest& rReq) { const SfxItemSet *pArgs = rReq.GetArgs(); const SfxPoolItem* pItem; |