summaryrefslogtreecommitdiff
path: root/basegfx/source/range/b2drangeclipper.cxx
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/source/range/b2drangeclipper.cxx
parente6dce260833ecddf0da9c85132665a7759fc1f17 (diff)
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/source/range/b2drangeclipper.cxx')
-rw-r--r--basegfx/source/range/b2drangeclipper.cxx23
1 files changed, 7 insertions, 16 deletions
diff --git a/basegfx/source/range/b2drangeclipper.cxx b/basegfx/source/range/b2drangeclipper.cxx
index d39c33cc7239..7ddc85c8bd94 100644
--- a/basegfx/source/range/b2drangeclipper.cxx
+++ b/basegfx/source/range/b2drangeclipper.cxx
@@ -29,7 +29,6 @@
#include <basegfx/polygon/b2dpolypolygontools.hxx>
#include <o3tl/vector_pool.hxx>
-#include <boost/bind.hpp>
#include <boost/next_prior.hpp>
#include <algorithm>
@@ -496,11 +495,7 @@ namespace basegfx
B2DPolygon aRes;
std::for_each( maPoints.begin(),
maPoints.end(),
- boost::bind(
- &B2DPolygon::append,
- boost::ref(aRes),
- _1,
- 1 ) );
+ [&aRes](const B2DPoint& aPoint) mutable { aRes.append(aPoint, 1); });
aRes.setClosed( true );
return aRes;
}
@@ -748,10 +743,7 @@ namespace basegfx
// rect is regarded _outside_ any rects whose events have
// started earlier
first = std::find_if(first, last,
- boost::bind(
- &isSameRect,
- _1,
- boost::cref(rCurrRect)));
+ [&rCurrRect](ActiveEdge& anEdge) { return isSameRect(anEdge, rCurrRect); });
if(first == last)
return;
@@ -907,12 +899,11 @@ namespace basegfx
std::for_each( aSweepLineEvents.begin(),
aSweepLineEvents.end(),
- boost::bind(
- &handleSweepLineEvent,
- _1,
- boost::ref(aActiveEdgeList),
- boost::ref(aPolygonPool),
- boost::ref(aRes)) );
+ [&](SweepLineEvent& aSweepLineEvent) mutable { handleSweepLineEvent(
+ aSweepLineEvent,
+ aActiveEdgeList,
+ aPolygonPool,
+ aRes); } );
return aRes;
}