summaryrefslogtreecommitdiff
path: root/basegfx/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-10-25 16:11:34 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-10-26 12:44:44 +0200
commitdb04585533cc0f5971f6238c18ae7cadcf31d930 (patch)
tree0bf7c00a3baa1dadf3c836d13a4cc6d3b315e4e7 /basegfx/test
parent018687837648dfe1832ddabbd4cda183708d7fdc (diff)
loplugin:constmethod in basegfx,sot
Change-Id: I05d2cdefb7faf489ec29ba28dc5e3c28d08b9780 Reviewed-on: https://gerrit.libreoffice.org/43863 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx/test')
-rw-r--r--basegfx/test/basegfx2d.cxx4
-rw-r--r--basegfx/test/boxclipper.cxx8
-rw-r--r--basegfx/test/clipstate.cxx2
-rw-r--r--basegfx/test/genericclipper.cxx4
4 files changed, 9 insertions, 9 deletions
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<rPoly.count(); ++i )
@@ -214,7 +214,7 @@ public:
return aRes;
}
- void verifyPoly(const char* sName, const char* sSvg, const B2DPolyRange& toTest)
+ void verifyPoly(const char* sName, const char* sSvg, const B2DPolyRange& toTest) const
{
B2DPolyPolygon aTmp1;
CPPUNIT_ASSERT_MESSAGE(sName,
@@ -293,7 +293,7 @@ public:
}
void dumpSvg(const char* pName,
- const ::basegfx::B2DPolyPolygon& rPoly)
+ const ::basegfx::B2DPolyPolygon& rPoly) const
{
(void)pName; (void)rPoly;
#if OSL_DEBUG_LEVEL > 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);