diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-10 21:53:47 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-03-11 10:05:39 +0100 |
commit | 69b5f0b6579c6574a8fe68ab2a64208ec767db55 (patch) | |
tree | 1fafea3a72e113d0a915a1f79a2f4b3406d695a0 /svx/source | |
parent | 4015b22dbc10bc246a3ef704d8b75e8f8cdca519 (diff) |
loplugin:constparams
Change-Id: I5f184f93dbdb414514855c85c9dc1624e7ec8636
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131337
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/form/filtnav.cxx | 2 | ||||
-rw-r--r-- | svx/source/form/navigatortree.cxx | 2 | ||||
-rw-r--r-- | svx/source/inc/filtnav.hxx | 2 | ||||
-rw-r--r-- | svx/source/inc/fmexpl.hxx | 2 | ||||
-rw-r--r-- | svx/source/styles/ColorSets.cxx | 6 | ||||
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdundo.cxx | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 7c626f2b6b7f..9b1703f6abc9 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -1321,7 +1321,7 @@ std::unique_ptr<weld::TreeIter> FmFilterNavigator::FindEntry(const FmFilterData* return nullptr; } -void FmFilterNavigator::Insert(FmFilterData* pItem, int nPos) +void FmFilterNavigator::Insert(const FmFilterData* pItem, int nPos) { const FmParentData* pParent = pItem->GetParent() ? pItem->GetParent() : m_pModel.get(); diff --git a/svx/source/form/navigatortree.cxx b/svx/source/form/navigatortree.cxx index 22323f9feb0e..b717ffa3c5bf 100644 --- a/svx/source/form/navigatortree.cxx +++ b/svx/source/form/navigatortree.cxx @@ -608,7 +608,7 @@ namespace svxform } } - std::unique_ptr<weld::TreeIter> NavigatorTree::Insert(FmEntryData* pEntryData, int nRelPos) + std::unique_ptr<weld::TreeIter> NavigatorTree::Insert(const FmEntryData* pEntryData, int nRelPos) { // insert current entry std::unique_ptr<weld::TreeIter> xParentEntry = FindEntry( pEntryData->GetParent() ); diff --git a/svx/source/inc/filtnav.hxx b/svx/source/inc/filtnav.hxx index 34343d9c0af4..47af4017a7f3 100644 --- a/svx/source/inc/filtnav.hxx +++ b/svx/source/inc/filtnav.hxx @@ -273,7 +273,7 @@ private: void DeleteSelection(); std::unique_ptr<weld::TreeIter> FindEntry(const FmFilterData* pItem) const; - void Insert(FmFilterData* pItem, int nPos); + void Insert(const FmFilterData* pItem, int nPos); void Remove(FmFilterData const * pItem); DECL_LINK(OnRemove, void*, void); diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx index 572b563b7cd9..fc7823b699d9 100644 --- a/svx/source/inc/fmexpl.hxx +++ b/svx/source/inc/fmexpl.hxx @@ -409,7 +409,7 @@ namespace svxform FmControlData* NewControl(const OUString& rServiceName, const weld::TreeIter& rParentEntry, bool bEditName); void NewForm(const weld::TreeIter& rParentEntry); - std::unique_ptr<weld::TreeIter> Insert(FmEntryData* pEntryData, int nRelPos); + std::unique_ptr<weld::TreeIter> Insert(const FmEntryData* pEntryData, int nRelPos); void Remove( FmEntryData* pEntryData ); diff --git a/svx/source/styles/ColorSets.cxx b/svx/source/styles/ColorSets.cxx index 4cd958d05f23..b1cb6fb34ca7 100644 --- a/svx/source/styles/ColorSets.cxx +++ b/svx/source/styles/ColorSets.cxx @@ -33,7 +33,7 @@ namespace { /// Updates a text portion to match a new color set, in case it already uses theme colors. void UpdateTextPortionColorSet(const uno::Reference<beans::XPropertySet>& xPortion, - svx::ColorSet& rColorSet) + const svx::ColorSet& rColorSet) { sal_Int16 nCharColorTheme = -1; xPortion->getPropertyValue(UNO_NAME_EDIT_CHAR_COLOR_THEME) >>= nCharColorTheme; @@ -63,7 +63,7 @@ void UpdateTextPortionColorSet(const uno::Reference<beans::XPropertySet>& xPorti uno::makeAny(static_cast<sal_Int32>(aColor))); } -void UpdateFillColorSet(const uno::Reference<beans::XPropertySet>& xShape, svx::ColorSet& rColorSet) +void UpdateFillColorSet(const uno::Reference<beans::XPropertySet>& xShape, const svx::ColorSet& rColorSet) { if (!xShape->getPropertySetInfo()->hasPropertyByName(UNO_NAME_FILLCOLOR_THEME)) { @@ -318,7 +318,7 @@ std::unique_ptr<Theme> Theme::FromAny(const css::uno::Any& rVal) return pTheme; } -void Theme::UpdateSdrPage(SdrPage* pPage) +void Theme::UpdateSdrPage(const SdrPage* pPage) { for (size_t nObject = 0; nObject < pPage->GetObjCount(); ++nObject) { diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index 13e10c876338..769a720c3339 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -1991,7 +1991,7 @@ OUString SdrEdgeObj::getSpecialDragComment(const SdrDragStat& rDrag) const } -basegfx::B2DPolygon SdrEdgeObj::ImplAddConnectorOverlay(SdrDragMethod& rDragMethod, bool bTail1, bool bTail2, bool bDetail) const +basegfx::B2DPolygon SdrEdgeObj::ImplAddConnectorOverlay(const SdrDragMethod& rDragMethod, bool bTail1, bool bTail2, bool bDetail) const { basegfx::B2DPolygon aResult; diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx index 5f5f2708dc94..f1c97c4c16a8 100644 --- a/svx/source/svdraw/svdundo.cxx +++ b/svx/source/svdraw/svdundo.cxx @@ -972,7 +972,7 @@ OUString SdrUndoObjOrdNum::GetComment() const return ImpGetDescriptionStr(STR_UndoObjOrdNum); } -SdrUndoSort::SdrUndoSort(SdrPage & rPage, +SdrUndoSort::SdrUndoSort(const SdrPage & rPage, ::std::vector<sal_Int32> const& rSortOrder) : SdrUndoAction(rPage.getSdrModelFromSdrPage()) , m_OldSortOrder(rSortOrder.size()) |