diff options
Diffstat (limited to 'svx/source/customshapes/EnhancedCustomShapeFontWork.cxx')
-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() ); |