summaryrefslogtreecommitdiffstats
path: root/basegfx/test
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2015-10-25 20:00:08 -0300
committerNoel Grandin <noelgrandin@gmail.com>2015-10-26 05:49:07 +0000
commit32b54f97d1be1257090437a3e959aa618ace6018 (patch)
treeb28cbe68cb218143f5dc046da88efd48b6de447c /basegfx/test
parentcppcheck:noExplicitConstructor (diff)
downloadcore-32b54f97d1be1257090437a3e959aa618ace6018.tar.gz
core-32b54f97d1be1257090437a3e959aa618ace6018.zip
Replace boost::bind by lambdas in basegfx tree.
Change-Id: I8f72bec11b5dfd71cc60a18b980629c176d43f49 Reviewed-on: https://gerrit.libreoffice.org/19595 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basegfx/test')
-rw-r--r--basegfx/test/boxclipper.cxx24
1 files changed, 6 insertions, 18 deletions
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx
index c6770d3e12ac..92edbdb9b3dc 100644
--- a/basegfx/test/boxclipper.cxx
+++ b/basegfx/test/boxclipper.cxx
@@ -35,8 +35,6 @@
#include <basegfx/numeric/ftools.hxx>
#include <comphelper/random.hxx>
-#include <boost/bind.hpp>
-
#include <boxclipper.hxx>
using namespace ::basegfx;
@@ -168,14 +166,9 @@ public:
OUString::createFromAscii(randomSvg), false, 0);
std::for_each(randomPoly.begin(),
randomPoly.end(),
- boost::bind(
- &B2DPolyRange::appendElement,
- boost::ref(aRandomIntersections),
- boost::bind(
- &B2DPolygon::getB2DRange,
- _1),
- B2VectorOrientation::Negative,
- 1));
+ [this](const B2DPolygon& aPolygon) mutable {
+ this->aRandomIntersections.appendElement(aPolygon.getB2DRange(),
+ B2VectorOrientation::Negative, 1); } );
#endif
}
@@ -223,14 +216,9 @@ public:
// now, sort all polygons with increasing 0th point
std::sort(aRes.begin(),
aRes.end(),
- boost::bind(
- &compare,
- boost::bind(
- &B2DPolygon::getB2DPoint,
- _1,0),
- boost::bind(
- &B2DPolygon::getB2DPoint,
- _2,0)));
+ [](const B2DPolygon& aPolygon1, const B2DPolygon& aPolygon2) {
+ return compare(aPolygon1.getB2DPoint(0),
+ aPolygon2.getB2DPoint(0)); } );
return aRes;
}