diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-24 14:07:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-25 10:56:03 +0200 |
commit | 83fd71e041f2c0520c4cc213e238c7f3c674c5a3 (patch) | |
tree | 5812c9db1d74548128c27bf2c1c44ec7aa5a79f2 /svx | |
parent | e46d27a692f43192ba29f03c473f43bb16c1444f (diff) |
loplugin:constmethod in tools,sax,UnoControls
Change-Id: Ie05e44e2a4019e2549843961ebfa04fef7b7aeb4
Reviewed-on: https://gerrit.libreoffice.org/43767
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeFontWork.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx index fb34312cae6b..dc5693d0ff71 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFontWork.cxx @@ -138,7 +138,7 @@ double GetLength( const tools::Polygon& rPolygon ) { sal_uInt16 nCount = rPolygon.GetSize(); while( --nCount ) - fLength += const_cast<tools::Polygon&>(rPolygon).CalcDistance( nCount, nCount - 1 ); + fLength += rPolygon.CalcDistance( nCount, nCount - 1 ); } return fLength; } @@ -538,7 +538,7 @@ void CalcDistances( const tools::Polygon& rPoly, std::vector< double >& rDistanc { for ( i = 0; i < nCount; i++ ) { - double fDistance = i ? const_cast<tools::Polygon&>(rPoly).CalcDistance( i, i - 1 ) : 0.0; + double fDistance = i ? rPoly.CalcDistance( i, i - 1 ) : 0.0; rDistances.push_back( fDistance ); } std::partial_sum( rDistances.begin(), rDistances.end(), rDistances.begin() ); |