From db04585533cc0f5971f6238c18ae7cadcf31d930 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 25 Oct 2017 16:11:34 +0200 Subject: loplugin:constmethod in basegfx,sot Change-Id: I05d2cdefb7faf489ec29ba28dc5e3c28d08b9780 Reviewed-on: https://gerrit.libreoffice.org/43863 Tested-by: Jenkins Reviewed-by: Noel Grandin --- basegfx/test/basegfx2d.cxx | 4 ++-- basegfx/test/boxclipper.cxx | 8 ++++---- basegfx/test/clipstate.cxx | 2 +- basegfx/test/genericclipper.cxx | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'basegfx/test') diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx index 6dbd6e0708d9..516e57ba1f86 100644 --- a/basegfx/test/basegfx2d.cxx +++ b/basegfx/test/basegfx2d.cxx @@ -573,7 +573,7 @@ public: CPPUNIT_ASSERT_EQUAL_MESSAGE("multiply: none compact", perspectivePerspectiveProd, temp); } - void impFillMatrix(B2DHomMatrix& rSource, double fScaleX, double fScaleY, double fShearX, double fRotate) + void impFillMatrix(B2DHomMatrix& rSource, double fScaleX, double fScaleY, double fShearX, double fRotate) const { // fill rSource with a linear combination of scale, shear and rotate rSource.identity(); @@ -582,7 +582,7 @@ public: rSource.rotate(fRotate); } - bool impDecomposeComposeTest(double fScaleX, double fScaleY, double fShearX, double fRotate) + bool impDecomposeComposeTest(double fScaleX, double fScaleY, double fShearX, double fRotate) const { // linear combine matrix with given values B2DHomMatrix aSource; diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx index d497077c125a..90dbad7d5066 100644 --- a/basegfx/test/boxclipper.cxx +++ b/basegfx/test/boxclipper.cxx @@ -167,7 +167,7 @@ public: #endif } - B2DPolyPolygon normalizePoly( const B2DPolyPolygon& rPoly ) + B2DPolyPolygon normalizePoly( const B2DPolyPolygon& rPoly ) const { B2DPolyPolygon aRes; for( sal_uInt32 i=0; i 2 @@ -325,7 +325,7 @@ public: CPPUNIT_ASSERT_MESSAGE("getPolyPolygon", true ); } - void validatePoly( const char* pName, const B2DPolyRange& rRange ) + void validatePoly( const char* pName, const B2DPolyRange& rRange ) const { B2DPolyPolygon genericClip; const sal_uInt32 nCount=rRange.count(); diff --git a/basegfx/test/clipstate.cxx b/basegfx/test/clipstate.cxx index 898b616c57a5..5a8409bf39d5 100644 --- a/basegfx/test/clipstate.cxx +++ b/basegfx/test/clipstate.cxx @@ -86,7 +86,7 @@ public: aSubtract.subtractRange(aEast); } - void verifyPoly(const char* sName, const char* sSvg, const utils::B2DClipState& toTest) + void verifyPoly(const char* sName, const char* sSvg, const utils::B2DClipState& toTest) const { #if OSL_DEBUG_LEVEL > 2 fprintf(stderr, "%s - svg:d=\"%s\"\n", diff --git a/basegfx/test/genericclipper.cxx b/basegfx/test/genericclipper.cxx index 44aad203390b..dcd912f5dd5c 100644 --- a/basegfx/test/genericclipper.cxx +++ b/basegfx/test/genericclipper.cxx @@ -66,7 +66,7 @@ public: void validate(const char* pName, const char* pValidSvgD, - B2DPolyPolygon (*pFunc)(const B2DPolyPolygon&, const B2DPolyPolygon&)) + B2DPolyPolygon (*pFunc)(const B2DPolyPolygon&, const B2DPolyPolygon&)) const { const B2DPolyPolygon aSelfIntersect( utils::prepareForPolygonOperation(aSelfIntersecting)); @@ -127,7 +127,7 @@ public: void validateCrossover(const char* pName, const char* pInputSvgD, - const char* pValidSvgD) + const char* pValidSvgD) const { OUString aInput=OUString::createFromAscii(pInputSvgD); OUString aValid=OUString::createFromAscii(pValidSvgD); -- cgit