Kaydet (Commit) d8e31a35 authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:constparams in svx

Change-Id: Ie37288e4b9f064e309df81830f3a07507525bc55
Reviewed-on: https://gerrit.libreoffice.org/66771
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst b4ca7bd5
...@@ -124,7 +124,7 @@ class SVX_DLLPUBLIC GalleryProgress ...@@ -124,7 +124,7 @@ class SVX_DLLPUBLIC GalleryProgress
public: public:
GalleryProgress( GraphicFilter* pFilter = nullptr ); GalleryProgress( const GraphicFilter* pFilter = nullptr );
~GalleryProgress(); ~GalleryProgress();
void Update( sal_Int32 nVal, sal_Int32 nMaxVal ); void Update( sal_Int32 nVal, sal_Int32 nMaxVal );
......
...@@ -86,7 +86,7 @@ protected: ...@@ -86,7 +86,7 @@ protected:
std::unique_ptr<weld::CustomWeld> m_xBspWin; std::unique_ptr<weld::CustomWeld> m_xBspWin;
void InitHandler(); void InitHandler();
void TurnOn(weld::ToggleButton* pButton); void TurnOn(const weld::ToggleButton* pButton);
DECL_LINK(TurnOnHdl, weld::ToggleButton&, void); DECL_LINK(TurnOnHdl, weld::ToggleButton&, void);
DECL_LINK(BackgroundHdl, weld::Button&, void); DECL_LINK(BackgroundHdl, weld::Button&, void);
DECL_LINK(ValueChangeHdl, weld::MetricSpinButton&, void); DECL_LINK(ValueChangeHdl, weld::MetricSpinButton&, void);
......
...@@ -140,7 +140,7 @@ public: ...@@ -140,7 +140,7 @@ public:
SdrLayer* GetLayer(sal_uInt16 i) { return maLayers[i].get(); } SdrLayer* GetLayer(sal_uInt16 i) { return maLayers[i].get(); }
const SdrLayer* GetLayer(sal_uInt16 i) const { 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); SdrLayer* GetLayer(const OUString& rName);
const SdrLayer* GetLayer(const OUString& rName) const; const SdrLayer* GetLayer(const OUString& rName) const;
......
...@@ -63,7 +63,7 @@ class SVX_DLLPUBLIC SwFrameExample : public weld::CustomWidgetController ...@@ -63,7 +63,7 @@ class SVX_DLLPUBLIC SwFrameExample : public weld::CustomWidgetController
void InitColors_Impl(); void InitColors_Impl();
void InitAllRects_Impl(vcl::RenderContext& rRenderContext); 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); tools::Rectangle DrawInnerFrame_Impl(vcl::RenderContext& rRenderContext, const tools::Rectangle &rRect, const Color &rFillColor, const Color &rBorderColor);
virtual void StyleUpdated() override; virtual void StyleUpdated() override;
......
...@@ -457,7 +457,7 @@ void SvxHFPage::InitHandler() ...@@ -457,7 +457,7 @@ void SvxHFPage::InitHandler()
m_xBackgroundBtn->connect_clicked(LINK(this,SvxHFPage, BackgroundHdl)); m_xBackgroundBtn->connect_clicked(LINK(this,SvxHFPage, BackgroundHdl));
} }
void SvxHFPage::TurnOn(weld::ToggleButton* pBox) void SvxHFPage::TurnOn(const weld::ToggleButton* pBox)
{ {
if (m_xTurnOnBox->get_active()) if (m_xTurnOnBox->get_active())
{ {
......
...@@ -226,7 +226,7 @@ void SwFrameExample::InitAllRects_Impl(vcl::RenderContext& rRenderContext) ...@@ -226,7 +226,7 @@ void SwFrameExample::InitAllRects_Impl(vcl::RenderContext& rRenderContext)
} }
} }
void SwFrameExample::CalcBoundRect_Impl(vcl::RenderContext& rRenderContext, tools::Rectangle &rRect) void SwFrameExample::CalcBoundRect_Impl(const vcl::RenderContext& rRenderContext, tools::Rectangle &rRect)
{ {
switch (nAnchor) switch (nAnchor)
{ {
......
...@@ -331,7 +331,7 @@ bool KillFile( const INetURLObject& rURL ) ...@@ -331,7 +331,7 @@ bool KillFile( const INetURLObject& rURL )
} }
GalleryProgress::GalleryProgress( GraphicFilter* pFilter ) GalleryProgress::GalleryProgress( const GraphicFilter* pFilter )
{ {
uno::Reference< lang::XMultiServiceFactory > xMgr( ::comphelper::getProcessServiceFactory() ); uno::Reference< lang::XMultiServiceFactory > xMgr( ::comphelper::getProcessServiceFactory() );
......
...@@ -188,7 +188,7 @@ SdrLayer* SdrLayerAdmin::NewLayer(const OUString& rName, sal_uInt16 nPos) ...@@ -188,7 +188,7 @@ SdrLayer* SdrLayerAdmin::NewLayer(const OUString& rName, sal_uInt16 nPos)
return pLay; return pLay;
} }
sal_uInt16 SdrLayerAdmin::GetLayerPos(SdrLayer* pLayer) const sal_uInt16 SdrLayerAdmin::GetLayerPos(const SdrLayer* pLayer) const
{ {
sal_uInt16 nRet=SDRLAYERPOS_NOTFOUND; sal_uInt16 nRet=SDRLAYERPOS_NOTFOUND;
if (pLayer!=nullptr) { if (pLayer!=nullptr) {
......
...@@ -1682,7 +1682,7 @@ void SdrMarkView::MarkObj(const tools::Rectangle& rRect, bool bUnmark) ...@@ -1682,7 +1682,7 @@ void SdrMarkView::MarkObj(const tools::Rectangle& rRect, bool bUnmark)
namespace { namespace {
void collectUIInformation(SdrObject* pObj) void collectUIInformation(const SdrObject* pObj)
{ {
EventDescription aDescription; EventDescription aDescription;
aDescription.aAction = "SELECT"; aDescription.aAction = "SELECT";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment