summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-01-24 09:29:27 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-01-24 11:01:34 +0100
commit4085f6ca9b345c362bb286e6fb1b17b2fcf2bc4c (patch)
tree89eddf9ce2487d00696639337bc02631b7d9dac1 /sd
parentfddd956c0cf3b2c22a152bbb30554def1336b466 (diff)
loplugin:constparams in sd..svtools
Change-Id: I50b864ffc4ed13ba801af46815988bf568b83d2e Reviewed-on: https://gerrit.libreoffice.org/66832 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd')
-rw-r--r--sd/inc/customshowlist.hxx2
-rw-r--r--sd/qa/unit/export-tests-ooxml2.cxx4
-rw-r--r--sd/source/ui/animations/CustomAnimationPane.cxx2
-rw-r--r--sd/source/ui/dlg/sdtreelb.cxx2
-rw-r--r--sd/source/ui/inc/sdtreelb.hxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/sd/inc/customshowlist.hxx b/sd/inc/customshowlist.hxx
index 666e43614ce2..c612ce4bf93e 100644
--- a/sd/inc/customshowlist.hxx
+++ b/sd/inc/customshowlist.hxx
@@ -77,7 +77,7 @@ public:
{
return mShows.empty() ? nullptr : mShows[mnCurPos].get();
}
- void erase(SdCustomShow* p)
+ void erase(const SdCustomShow* p)
{
auto it = std::find_if(mShows.begin(), mShows.end(),
[&] (std::unique_ptr<SdCustomShow> const &i) { return i.get() == p; });
diff --git a/sd/qa/unit/export-tests-ooxml2.cxx b/sd/qa/unit/export-tests-ooxml2.cxx
index 503b913b1ce0..0d63f6b0f508 100644
--- a/sd/qa/unit/export-tests-ooxml2.cxx
+++ b/sd/qa/unit/export-tests-ooxml2.cxx
@@ -1878,7 +1878,7 @@ void SdOOXMLExportTest2::testTdf118836()
xDocShRef->DoClose();
}
-static double getAdjustmentValue( uno::Reference<beans::XPropertySet>& xSet )
+static double getAdjustmentValue( const uno::Reference<beans::XPropertySet>& xSet )
{
auto aGeomPropSeq = xSet->getPropertyValue( "CustomShapeGeometry" )
.get<uno::Sequence<beans::PropertyValue>>();
@@ -1903,7 +1903,7 @@ static double getAdjustmentValue( uno::Reference<beans::XPropertySet>& xSet )
return -1.0;
}
-static bool getScaleXValue(uno::Reference<beans::XPropertySet>& xSet)
+static bool getScaleXValue(const uno::Reference<beans::XPropertySet>& xSet)
{
bool bScaleX = false;
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx
index 60f052445929..384ea90559e2 100644
--- a/sd/source/ui/animations/CustomAnimationPane.cxx
+++ b/sd/source/ui/animations/CustomAnimationPane.cxx
@@ -907,7 +907,7 @@ void CustomAnimationPane::UpdateLook()
}
}
-static void addValue( std::unique_ptr<STLPropertySet>& pSet, sal_Int32 nHandle, const Any& rValue )
+static void addValue( const std::unique_ptr<STLPropertySet>& pSet, sal_Int32 nHandle, const Any& rValue )
{
switch( pSet->getPropertyState( nHandle ) )
{
diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 1d7805360d79..c88a401af4ed 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -227,7 +227,7 @@ void SdPageObjsTLB::SetSdNavigator(SdNavigatorWin* pNavigator)
mpNavigator = pNavigator;
}
-void SdPageObjsTLB::SetViewFrame( SfxViewFrame* pViewFrame )
+void SdPageObjsTLB::SetViewFrame( const SfxViewFrame* pViewFrame )
{
sd::ViewShellBase* pBase = sd::ViewShellBase::GetViewShellBase(pViewFrame);
const css::uno::Reference< css::frame::XFrame > xFrame = pBase->GetMainViewShell()->GetViewFrame()->GetFrame().GetFrameInterface();
diff --git a/sd/source/ui/inc/sdtreelb.hxx b/sd/source/ui/inc/sdtreelb.hxx
index cea96d1a839d..d32d23666162 100644
--- a/sd/source/ui/inc/sdtreelb.hxx
+++ b/sd/source/ui/inc/sdtreelb.hxx
@@ -189,7 +189,7 @@ public:
virtual void KeyInput( const KeyEvent& rKEvt ) override;
void MouseButtonDown(const MouseEvent& rMEvt) override;
- void SetViewFrame( SfxViewFrame* pViewFrame );
+ void SetViewFrame( const SfxViewFrame* pViewFrame );
void Fill( const SdDrawDocument*, bool bAllPages, const OUString& rDocName );
void Fill( const SdDrawDocument*, SfxMedium* pSfxMedium, const OUString& rDocName );