From d8e31a35931de18bf71591ef84ac72f50bd73ef6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 23 Jan 2019 09:09:56 +0200 Subject: loplugin:constparams in svx Change-Id: Ie37288e4b9f064e309df81830f3a07507525bc55 Reviewed-on: https://gerrit.libreoffice.org/66771 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svx/galmisc.hxx | 2 +- include/svx/hdft.hxx | 2 +- include/svx/svdlayer.hxx | 2 +- include/svx/swframeexample.hxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include/svx') diff --git a/include/svx/galmisc.hxx b/include/svx/galmisc.hxx index d586325cc9a8..c77a9bd90cd0 100644 --- a/include/svx/galmisc.hxx +++ b/include/svx/galmisc.hxx @@ -124,7 +124,7 @@ class SVX_DLLPUBLIC GalleryProgress public: - GalleryProgress( GraphicFilter* pFilter = nullptr ); + GalleryProgress( const GraphicFilter* pFilter = nullptr ); ~GalleryProgress(); void Update( sal_Int32 nVal, sal_Int32 nMaxVal ); diff --git a/include/svx/hdft.hxx b/include/svx/hdft.hxx index 9cd1587510b5..2a307ec13e10 100644 --- a/include/svx/hdft.hxx +++ b/include/svx/hdft.hxx @@ -86,7 +86,7 @@ protected: std::unique_ptr m_xBspWin; void InitHandler(); - void TurnOn(weld::ToggleButton* pButton); + void TurnOn(const weld::ToggleButton* pButton); DECL_LINK(TurnOnHdl, weld::ToggleButton&, void); DECL_LINK(BackgroundHdl, weld::Button&, void); DECL_LINK(ValueChangeHdl, weld::MetricSpinButton&, void); diff --git a/include/svx/svdlayer.hxx b/include/svx/svdlayer.hxx index dca763194356..491dcd253bf1 100644 --- a/include/svx/svdlayer.hxx +++ b/include/svx/svdlayer.hxx @@ -140,7 +140,7 @@ public: SdrLayer* GetLayer(sal_uInt16 i) { return maLayers[i].get(); } const SdrLayer* GetLayer(sal_uInt16 i) const { return maLayers[i].get(); } - sal_uInt16 GetLayerPos(SdrLayer* pLayer) const; + sal_uInt16 GetLayerPos(const SdrLayer* pLayer) const; SdrLayer* GetLayer(const OUString& rName); const SdrLayer* GetLayer(const OUString& rName) const; diff --git a/include/svx/swframeexample.hxx b/include/svx/swframeexample.hxx index 814f0d84aa22..0437831781ca 100644 --- a/include/svx/swframeexample.hxx +++ b/include/svx/swframeexample.hxx @@ -63,7 +63,7 @@ class SVX_DLLPUBLIC SwFrameExample : public weld::CustomWidgetController void InitColors_Impl(); void InitAllRects_Impl(vcl::RenderContext& rRenderContext); - void CalcBoundRect_Impl(vcl::RenderContext& rRenderContext, tools::Rectangle &rRect); + void CalcBoundRect_Impl(const vcl::RenderContext& rRenderContext, tools::Rectangle &rRect); tools::Rectangle DrawInnerFrame_Impl(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect, const Color &rFillColor, const Color &rBorderColor); virtual void StyleUpdated() override; -- cgit