summaryrefslogtreecommitdiffstats
path: root/basegfx/test/clipstate.cxx
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-09-22 14:12:07 +0300
committerTor Lillqvist <tml@collabora.com>2017-09-26 14:18:41 +0200
commit8e7897588d7185ef1964e8120669c1de3d1ce734 (patch)
tree8f48598670a5dc22703371943c05789d60b9a07d /basegfx/test/clipstate.cxx
parentloplugin:flatten in sw (diff)
downloadcore-8e7897588d7185ef1964e8120669c1de3d1ce734.tar.gz
core-8e7897588d7185ef1964e8120669c1de3d1ce734.zip
Rename the basegfx::tools namespace to basegfx::utils
Reduce potential confusion with the global tools namespace. Will hopefully make it possible to remove the annoying initial :: when referring to the global tools namespace. Unless we have even more tools subnamespaces somewhere. Thorsten said it was OK. Change-Id: Id088dfe8f4244cb79df9aa988995b31a1758c996 Reviewed-on: https://gerrit.libreoffice.org/42644 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tor Lillqvist <tml@collabora.com>
Diffstat (limited to 'basegfx/test/clipstate.cxx')
-rw-r--r--basegfx/test/clipstate.cxx26
1 files changed, 13 insertions, 13 deletions
diff --git a/basegfx/test/clipstate.cxx b/basegfx/test/clipstate.cxx
index 02618d61034c..898b616c57a5 100644
--- a/basegfx/test/clipstate.cxx
+++ b/basegfx/test/clipstate.cxx
@@ -22,7 +22,7 @@
#include <cppunit/TestFixture.h>
#include <cppunit/extensions/HelperMacros.h>
-#include <basegfx/tools/b2dclipstate.hxx>
+#include <basegfx/utils/b2dclipstate.hxx>
#include <basegfx/range/b2dpolyrange.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
@@ -38,11 +38,11 @@ namespace basegfx2d
class clipstate : public CppUnit::TestFixture
{
private:
- tools::B2DClipState aUnion1;
- tools::B2DClipState aUnion2;
- tools::B2DClipState aIntersect;
- tools::B2DClipState aXor;
- tools::B2DClipState aSubtract;
+ utils::B2DClipState aUnion1;
+ utils::B2DClipState aUnion2;
+ utils::B2DClipState aIntersect;
+ utils::B2DClipState aXor;
+ utils::B2DClipState aSubtract;
public:
void setUp() override
@@ -86,25 +86,25 @@ public:
aSubtract.subtractRange(aEast);
}
- void verifyPoly(const char* sName, const char* sSvg, const tools::B2DClipState& toTest)
+ void verifyPoly(const char* sName, const char* sSvg, const utils::B2DClipState& toTest)
{
#if OSL_DEBUG_LEVEL > 2
fprintf(stderr, "%s - svg:d=\"%s\"\n",
sName, OUStringToOString(
- basegfx::tools::exportToSvgD(toTest.getClipPoly(), true, true, false),
+ basegfx::utils::exportToSvgD(toTest.getClipPoly(), true, true, false),
RTL_TEXTENCODING_UTF8).getStr() );
#endif
B2DPolyPolygon aTmp1;
CPPUNIT_ASSERT_MESSAGE(sName,
- tools::importFromSvgD(
+ utils::importFromSvgD(
aTmp1, OUString::createFromAscii(sSvg), false, nullptr));
const OUString aSvg=
- tools::exportToSvgD(toTest.getClipPoly(), true, true, false);
+ utils::exportToSvgD(toTest.getClipPoly(), true, true, false);
B2DPolyPolygon aTmp2;
CPPUNIT_ASSERT_MESSAGE(sName,
- tools::importFromSvgD(
+ utils::importFromSvgD(
aTmp2, aSvg, false, nullptr));
CPPUNIT_ASSERT_EQUAL_MESSAGE(
@@ -130,12 +130,12 @@ public:
void verifyMixedClips()
{
- tools::B2DClipState aMixedClip;
+ utils::B2DClipState aMixedClip;
const char unionSvg[]="m100 10v90h-90v10h-20v-10h-90v-90h-10v-20h10v-90h90v-10h20v10h90v90h10v20z";
B2DPolyPolygon aTmp1;
- tools::importFromSvgD(aTmp1, unionSvg, false, nullptr);
+ utils::importFromSvgD(aTmp1, unionSvg, false, nullptr);
aMixedClip.intersectPolyPolygon(aTmp1);
aMixedClip.subtractRange(B2DRange(-20,-150,20,0));