diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-28 14:53:10 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-29 08:50:12 +0200 |
commit | 148a9f29d4bbd31a1d59cb3f078f719cf09d0d90 (patch) | |
tree | a903a28846f330369c08bb4f1035fe407b5d2d7f /svx/source/engine3d | |
parent | 3c75009a677ae950105a65c699b16caf72b516b0 (diff) |
loplugin:constparams in svx
Change-Id: Icc388182b9b7b6a6617793be09217f06bed7332d
Reviewed-on: https://gerrit.libreoffice.org/40527
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/engine3d')
-rw-r--r-- | svx/source/engine3d/scene3d.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/engine3d/scene3d.cxx b/svx/source/engine3d/scene3d.cxx index 13cdd51ee04a..3dd2dbf1f0e0 100644 --- a/svx/source/engine3d/scene3d.cxx +++ b/svx/source/engine3d/scene3d.cxx @@ -105,12 +105,12 @@ class Imp3DDepthRemapper std::vector< ImpRemap3DDepth > maVector; public: - explicit Imp3DDepthRemapper(E3dScene& rScene); + explicit Imp3DDepthRemapper(E3dScene const & rScene); sal_uInt32 RemapOrdNum(sal_uInt32 nOrdNum) const; }; -Imp3DDepthRemapper::Imp3DDepthRemapper(E3dScene& rScene) +Imp3DDepthRemapper::Imp3DDepthRemapper(E3dScene const & rScene) { // only called when rScene.GetSubList() and nObjCount > 1L SdrObjList* pList = rScene.GetSubList(); @@ -243,7 +243,7 @@ sal_uInt32 E3dScene::RemapOrdNum(sal_uInt32 nNewOrdNum) const if(nObjCount > 1) { - const_cast<E3dScene*>(this)->mp3DDepthRemapper = new Imp3DDepthRemapper(const_cast<E3dScene&>(*this)); + const_cast<E3dScene*>(this)->mp3DDepthRemapper = new Imp3DDepthRemapper(*this); } } |