summaryrefslogtreecommitdiffstats
path: root/basegfx/test
diff options
context:
space:
mode:
authorZsolt Bölöny <bolony.zsolt@gmail.com>2015-05-19 17:36:54 +0200
committerCaolán McNamara <caolanm@redhat.com>2015-06-02 13:20:02 +0000
commitd0f6f00c1af07e744b4302ed9f33ca6c025a1434 (patch)
tree9e920b857f534818f6dcf138573ac97e2bd80333 /basegfx/test
parentA small hint on how to specify the database URL should be helpful to users (diff)
downloadcore-d0f6f00c1af07e744b4302ed9f33ca6c025a1434.tar.gz
core-d0f6f00c1af07e744b4302ed9f33ca6c025a1434.zip
Replaced boost::tuple with std::tuple
Change-Id: Ia001c8e1e00df85d2be93e330811a1081179785d Reviewed-on: https://gerrit.libreoffice.org/15816 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'basegfx/test')
-rw-r--r--basegfx/test/basegfx2d.cxx4
-rw-r--r--basegfx/test/boxclipper.cxx5
2 files changed, 4 insertions, 5 deletions
diff --git a/basegfx/test/basegfx2d.cxx b/basegfx/test/basegfx2d.cxx
index f6afc96aa3bf..8f06c6fafece 100644
--- a/basegfx/test/basegfx2d.cxx
+++ b/basegfx/test/basegfx2d.cxx
@@ -294,9 +294,9 @@ public:
CPPUNIT_ASSERT_MESSAGE("simple poly range - count",
aRange.count() == 2);
CPPUNIT_ASSERT_MESSAGE("simple poly range - first element",
- aRange.getElement(0).head == B2DRange(0,0,1,1));
+ std::get<0>(aRange.getElement(0)) == B2DRange(0,0,1,1));
CPPUNIT_ASSERT_MESSAGE("simple poly range - second element",
- aRange.getElement(1).head == B2DRange(2,2,3,3));
+ std::get<0>(aRange.getElement(1)) == B2DRange(2,2,3,3));
// B2DPolyRange relies on correctly orientated rects
const B2DRange aRect(0,0,1,1);
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx
index 696e86c622e9..c7ff41101b42 100644
--- a/basegfx/test/boxclipper.cxx
+++ b/basegfx/test/boxclipper.cxx
@@ -352,9 +352,8 @@ public:
const sal_uInt32 nCount=rRange.count();
for( sal_uInt32 i=0; i<nCount; ++i )
{
- B2DPolygon aRect=tools::createPolygonFromRect(
- rRange.getElement(i).head);
- if( rRange.getElement(i).tail.head == ORIENTATION_NEGATIVE )
+ B2DPolygon aRect=tools::createPolygonFromRect(std::get<0>(rRange.getElement(i)));
+ if( std::get<1>(rRange.getElement(i)) == ORIENTATION_NEGATIVE )
aRect.flip();
genericClip.append(aRect);