summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-11-01 16:38:15 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-11-03 10:30:00 +0100
commit0dca40256320753fdbd42ac9c7de889026d7d469 (patch)
tree647d059917e22a0b910f7d6d803bd50ad953edcd /svtools
parentb477f791e3e332b41c80782844c4c379212f0fd8 (diff)
loplugin:constparam in vcl,svtools
Change-Id: I7a3eb2bfda869e9e66db919f929ead60cf8890a4 Reviewed-on: https://gerrit.libreoffice.org/44209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/contnr/imivctl.hxx6
-rw-r--r--svtools/source/contnr/imivctl1.cxx6
-rw-r--r--svtools/source/contnr/ivctrl.cxx2
-rw-r--r--svtools/source/control/ruler.cxx2
4 files changed, 8 insertions, 8 deletions
diff --git a/svtools/source/contnr/imivctl.hxx b/svtools/source/contnr/imivctl.hxx
index 882b0049910d..1f9efb0ce1b2 100644
--- a/svtools/source/contnr/imivctl.hxx
+++ b/svtools/source/contnr/imivctl.hxx
@@ -249,8 +249,8 @@ class SvxIconChoiceCtrl_Impl
);
void SelectRange(
- SvxIconChoiceCtrlEntry* pStart,
- SvxIconChoiceCtrlEntry* pEnd,
+ SvxIconChoiceCtrlEntry const * pStart,
+ SvxIconChoiceCtrlEntry const * pEnd,
bool bAdd
);
@@ -447,7 +447,7 @@ public:
}
SvxIconChoiceCtrlEntry* GetFirstSelectedEntry() const;
void SetSelectionMode( SelectionMode eMode ) { eSelectionMode=eMode; }
- sal_Int32 GetEntryListPos( SvxIconChoiceCtrlEntry* ) const;
+ sal_Int32 GetEntryListPos( SvxIconChoiceCtrlEntry const * ) const;
void InitSettings();
tools::Rectangle GetOutputRect() const;
diff --git a/svtools/source/contnr/imivctl1.cxx b/svtools/source/contnr/imivctl1.cxx
index 424b080ff213..8366a8c497e1 100644
--- a/svtools/source/contnr/imivctl1.cxx
+++ b/svtools/source/contnr/imivctl1.cxx
@@ -2564,8 +2564,8 @@ void SvxIconChoiceCtrl_Impl::SelectRect( const tools::Rectangle& rRect, bool bAd
}
void SvxIconChoiceCtrl_Impl::SelectRange(
- SvxIconChoiceCtrlEntry* pStart,
- SvxIconChoiceCtrlEntry* pEnd,
+ SvxIconChoiceCtrlEntry const * pStart,
+ SvxIconChoiceCtrlEntry const * pEnd,
bool bAdd )
{
sal_uLong nFront = GetEntryListPos( pStart );
@@ -3047,7 +3047,7 @@ void IcnViewEdit_Impl::StopEditing()
}
}
-sal_Int32 SvxIconChoiceCtrl_Impl::GetEntryListPos( SvxIconChoiceCtrlEntry* pEntry ) const
+sal_Int32 SvxIconChoiceCtrl_Impl::GetEntryListPos( SvxIconChoiceCtrlEntry const * pEntry ) const
{
if( !(nFlags & IconChoiceFlags::EntryListPosValid ))
const_cast<SvxIconChoiceCtrl_Impl*>(this)->SetListPositions();
diff --git a/svtools/source/contnr/ivctrl.cxx b/svtools/source/contnr/ivctrl.cxx
index f1796d5704ac..31310df0313b 100644
--- a/svtools/source/contnr/ivctrl.cxx
+++ b/svtools/source/contnr/ivctrl.cxx
@@ -297,7 +297,7 @@ bool SvtIconChoiceCtrl::DoKeyInput( const KeyEvent& rKEvt )
bool bHandled = _pImpl->KeyInput( rKEvt );
return bHandled;
}
-sal_Int32 SvtIconChoiceCtrl::GetEntryListPos( SvxIconChoiceCtrlEntry* pEntry ) const
+sal_Int32 SvtIconChoiceCtrl::GetEntryListPos( SvxIconChoiceCtrlEntry const * pEntry ) const
{
return _pImpl->GetEntryListPos( pEntry );
}
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 15e96da47f98..52198ae55f92 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -1744,7 +1744,7 @@ bool Ruler::ImplDocHitTest( const Point& rPos, RulerType eDragType,
return false;
}
-bool Ruler::ImplStartDrag( RulerSelection* pHitTest, sal_uInt16 nModifier )
+bool Ruler::ImplStartDrag( RulerSelection const * pHitTest, sal_uInt16 nModifier )
{
// don't trigger drag if a border that was clicked can not be changed
if ( (pHitTest->eType == RulerType::Border) &&