include/svx/dialog/ThemeColorEditDialog.hxx   |    2 +-
 include/svx/sdr/contact/viewcontact.hxx       |    2 +-
 include/svx/sdr/contact/viewobjectcontact.hxx |    2 +-
 include/svx/svdedtv.hxx                       |    2 +-
 include/svx/svdundo.hxx                       |    2 +-
 svx/source/dialog/ThemeColorEditDialog.cxx    |    2 +-
 svx/source/dialog/framelinkarray.cxx          |    4 ++--
 svx/source/dialog/srchdlg.cxx                 |    2 +-
 svx/source/sdr/contact/viewcontact.cxx        |    2 +-
 svx/source/sdr/contact/viewobjectcontact.cxx  |    2 +-
 svx/source/svdraw/svdedtv1.cxx                |    2 +-
 svx/source/svdraw/svdmrkv.cxx                 |    2 +-
 svx/source/svdraw/svdundo.cxx                 |    2 +-
 svx/source/tbxctrls/tbcontrl.cxx              |    2 +-
 14 files changed, 15 insertions(+), 15 deletions(-)

New commits:
commit f3aac8a24148eda2c0f9dc52dd8701f037fb6ccf
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Mar 20 08:14:05 2025 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu Mar 20 10:52:09 2025 +0100

    loplugin:constparam in svx
    
    Change-Id: Ibdac11b615ce28cf0cfbd3ad51ecbc56f5a73154
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/183143
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/include/svx/dialog/ThemeColorEditDialog.hxx 
b/include/svx/dialog/ThemeColorEditDialog.hxx
index 067d89d606fa..800cae7f4508 100644
--- a/include/svx/dialog/ThemeColorEditDialog.hxx
+++ b/include/svx/dialog/ThemeColorEditDialog.hxx
@@ -40,7 +40,7 @@ private:
     std::unique_ptr<ColorListBox> mxFollowHyperlink;
 
 public:
-    ThemeColorEditDialog(weld::Window* pParent, model::ColorSet& rColorSet);
+    ThemeColorEditDialog(weld::Window* pParent, const model::ColorSet& 
rColorSet);
     virtual ~ThemeColorEditDialog() override;
     model::ColorSet getColorSet();
 };
diff --git a/include/svx/sdr/contact/viewcontact.hxx 
b/include/svx/sdr/contact/viewcontact.hxx
index 9de7b0994b8b..83798789844c 100644
--- a/include/svx/sdr/contact/viewcontact.hxx
+++ b/include/svx/sdr/contact/viewcontact.hxx
@@ -122,7 +122,7 @@ public:
     virtual void ActionChanged();
 
     // IASS: helpers for IASS invalidates
-    void ActionChangedIfDifferentPageView(SdrPageView& rSdrPageView);
+    void ActionChangedIfDifferentPageView(const SdrPageView& rSdrPageView);
     bool hasMultipleViewObjectContacts() const;
 
     // access to the local primitive. This will ensure that the primitive is
diff --git a/include/svx/sdr/contact/viewobjectcontact.hxx 
b/include/svx/sdr/contact/viewobjectcontact.hxx
index 393a23599a6e..9ef43e669539 100644
--- a/include/svx/sdr/contact/viewobjectcontact.hxx
+++ b/include/svx/sdr/contact/viewobjectcontact.hxx
@@ -101,7 +101,7 @@ public:
     virtual void ActionChanged();
 
     // IASS: helper for IASS invalidates
-    void ActionChangedIfDifferentPageView(SdrPageView& rSdrPageView);
+    void ActionChangedIfDifferentPageView(const SdrPageView& rSdrPageView);
 
     // LazyInvalidate handling
     void triggerLazyInvalidate();
diff --git a/include/svx/svdedtv.hxx b/include/svx/svdedtv.hxx
index 4520c5411b5e..88125349e08b 100644
--- a/include/svx/svdedtv.hxx
+++ b/include/svx/svdedtv.hxx
@@ -231,7 +231,7 @@ public:
     void SetMarkedObjRect(const tools::Rectangle& rRect);
     void MoveMarkedObj(const Size& rSiz, bool bCopy=false);
     void ResizeMarkedObj(const Point& rRef, const Fraction& xFact, const 
Fraction& yFact, bool bCopy=false);
-    bool IsMarkedObjSizeValid(Size& aTargetSize);
+    bool IsMarkedObjSizeValid(const Size& aTargetSize);
     SAL_DLLPRIVATE void ResizeMultMarkedObj(const Point& rRef, const Fraction& 
xFact, const Fraction& yFact, const bool bWdh, const bool bHgt);
     SAL_DLLPRIVATE Degree100 GetMarkedObjRotate() const;
     void RotateMarkedObj(const Point& rRef, Degree100 nAngle, bool 
bCopy=false);
diff --git a/include/svx/svdundo.hxx b/include/svx/svdundo.hxx
index 21cc57e6caac..7bd7056960c2 100644
--- a/include/svx/svdundo.hxx
+++ b/include/svx/svdundo.hxx
@@ -235,7 +235,7 @@ class UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) 
SdrUndoDiagramModelData final : public
     void implUndoRedo(bool bUndo);
 
 public:
-    SdrUndoDiagramModelData(SdrObject& rNewObj, std::shared_ptr< 
svx::diagram::DiagramDataState >& rStartState);
+    SdrUndoDiagramModelData(SdrObject& rNewObj, const std::shared_ptr< 
svx::diagram::DiagramDataState >& rStartState);
     virtual ~SdrUndoDiagramModelData() override;
 
     virtual void Undo() override;
diff --git a/svx/source/dialog/ThemeColorEditDialog.cxx 
b/svx/source/dialog/ThemeColorEditDialog.cxx
index 9ec24b8fa43d..b3845f162bd6 100644
--- a/svx/source/dialog/ThemeColorEditDialog.cxx
+++ b/svx/source/dialog/ThemeColorEditDialog.cxx
@@ -12,7 +12,7 @@
 
 namespace svx
 {
-ThemeColorEditDialog::ThemeColorEditDialog(weld::Window* pParent, 
model::ColorSet& rColorSet)
+ThemeColorEditDialog::ThemeColorEditDialog(weld::Window* pParent, const 
model::ColorSet& rColorSet)
     : GenericDialogController(pParent, u"svx/ui/themecoloreditdialog.ui"_ustr,
                               u"ThemeColorEditDialog"_ustr)
     , maColorSet(rColorSet)
diff --git a/svx/source/dialog/framelinkarray.cxx 
b/svx/source/dialog/framelinkarray.cxx
index e1b420762f3b..4c2b5259c3d5 100644
--- a/svx/source/dialog/framelinkarray.cxx
+++ b/svx/source/dialog/framelinkarray.cxx
@@ -285,7 +285,7 @@ namespace
 {
 struct RegisteredCellHash
 {
-    size_t operator()(Cell* const pCell) const
+    size_t operator()(const Cell* pCell) const
     {
         return pCell->hashCode();
     }
@@ -293,7 +293,7 @@ struct RegisteredCellHash
 
 struct RegisteredCellEquals
 {
-    bool operator()(Cell* const pCell1, Cell* const pCell2) const
+    bool operator()(const Cell* pCell1, const Cell* pCell2) const
     {
         return *pCell1 == *pCell2;
     }
diff --git a/svx/source/dialog/srchdlg.cxx b/svx/source/dialog/srchdlg.cxx
index 6d9d597e90d1..8e819010226a 100644
--- a/svx/source/dialog/srchdlg.cxx
+++ b/svx/source/dialog/srchdlg.cxx
@@ -2354,7 +2354,7 @@ SfxChildWinInfo SvxSearchDialogWrapper::GetInfo() const
     return aInfo;
 }
 
-static void lcl_SetSearchLabelWindow(const OUString& rStr, SfxViewFrame& 
rViewFrame)
+static void lcl_SetSearchLabelWindow(const OUString& rStr, const SfxViewFrame& 
rViewFrame)
 {
     css::uno::Reference< css::beans::XPropertySet > xPropSet(
             rViewFrame.GetFrame().GetFrameInterface(), 
css::uno::UNO_QUERY_THROW);
diff --git a/svx/source/sdr/contact/viewcontact.cxx 
b/svx/source/sdr/contact/viewcontact.cxx
index e5a3b00d4d12..dab9c095f138 100644
--- a/svx/source/sdr/contact/viewcontact.cxx
+++ b/svx/source/sdr/contact/viewcontact.cxx
@@ -204,7 +204,7 @@ void ViewContact::ActionChanged()
 }
 
 // IASS: helper for IASS invalidates
-void ViewContact::ActionChangedIfDifferentPageView(SdrPageView& rSdrPageView)
+void ViewContact::ActionChangedIfDifferentPageView(const SdrPageView& 
rSdrPageView)
 {
     const sal_uInt32 nCount(maViewObjectContactVector.size());
 
diff --git a/svx/source/sdr/contact/viewobjectcontact.cxx 
b/svx/source/sdr/contact/viewobjectcontact.cxx
index 728d03053a92..cc025c885110 100644
--- a/svx/source/sdr/contact/viewobjectcontact.cxx
+++ b/svx/source/sdr/contact/viewobjectcontact.cxx
@@ -251,7 +251,7 @@ void ViewObjectContact::ActionChanged()
 }
 
 // IASS: helper for IASS invalidates
-void ViewObjectContact::ActionChangedIfDifferentPageView(SdrPageView& 
rSdrPageView)
+void ViewObjectContact::ActionChangedIfDifferentPageView(const SdrPageView& 
rSdrPageView)
 {
     SdrPageView* pSdrPageView(GetObjectContact().TryToGetSdrPageView());
 
diff --git a/svx/source/svdraw/svdedtv1.cxx b/svx/source/svdraw/svdedtv1.cxx
index 8618e92a60cc..963cdfbe837d 100644
--- a/svx/source/svdraw/svdedtv1.cxx
+++ b/svx/source/svdraw/svdedtv1.cxx
@@ -219,7 +219,7 @@ void SdrEditView::MoveMarkedObj(const Size& rSiz, bool 
bCopy)
         EndUndo();
 }
 
-bool SdrEditView::IsMarkedObjSizeValid(Size& aTargetSize)
+bool SdrEditView::IsMarkedObjSizeValid(const Size& aTargetSize)
 {
     if (SdrMark* pM=GetMarkedObjectList().GetMark(0))
     {
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 5c9db14b5402..fc5b6de517ff 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -814,7 +814,7 @@ namespace
         {
         }
 
-        const basegfx::B2DRange & getTextBounds(const 
sdr::contact::ViewObjectContact &rVOC, sdr::contact::DisplayInfo &raDisplayInfo)
+        const basegfx::B2DRange & getTextBounds(const 
sdr::contact::ViewObjectContact &rVOC, const sdr::contact::DisplayInfo 
&raDisplayInfo)
         {
             this->process(rVOC.getPrimitive2DSequence(raDisplayInfo));
             return maTextRange;
diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index cac255f88603..8c0b2f375e06 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -630,7 +630,7 @@ OUString SdrUndoGeoObj::GetComment() const
     return ImpGetDescriptionStr(STR_DragMethObjOwn);
 }
 
-SdrUndoDiagramModelData::SdrUndoDiagramModelData(SdrObject& rNewObj, 
svx::diagram::DiagramDataStatePtr& rStartState)
+SdrUndoDiagramModelData::SdrUndoDiagramModelData(SdrObject& rNewObj, const 
svx::diagram::DiagramDataStatePtr& rStartState)
 : SdrUndoObj(rNewObj)
 , m_aStartState(rStartState)
 , m_aEndState()
diff --git a/svx/source/tbxctrls/tbcontrl.cxx b/svx/source/tbxctrls/tbcontrl.cxx
index 7ffaa8e4d77c..731b928ba53e 100644
--- a/svx/source/tbxctrls/tbcontrl.cxx
+++ b/svx/source/tbxctrls/tbcontrl.cxx
@@ -1328,7 +1328,7 @@ static bool SetFont(const SfxItemSet& rSet, sal_uInt16 
nSlot, SvxFont& rFont)
     return false;
 }
 
-static bool SetFontSize(vcl::RenderContext& rRenderContext, const SfxItemSet& 
rSet, sal_uInt16 nSlot, SvxFont& rFont)
+static bool SetFontSize(const vcl::RenderContext& rRenderContext, const 
SfxItemSet& rSet, sal_uInt16 nSlot, SvxFont& rFont)
 {
     sal_uInt16 nWhich;
     if (GetWhich(rSet, nSlot, nWhich))

Reply via email to