summaryrefslogtreecommitdiffstats
path: root/basegfx/test
diff options
context:
space:
mode:
authorMario J. Rugiero <mrugiero@gmail.com>2015-10-30 01:13:55 -0300
committerNoel Grandin <noelgrandin@gmail.com>2015-10-30 06:02:53 +0000
commit26d5407a5f653e55ec9255117760886bcec4fe15 (patch)
treeaad48e7e4c9a186032dcc771af8fa0e68a49eac8 /basegfx/test
parentloplugin:unusedmethods (diff)
downloadcore-26d5407a5f653e55ec9255117760886bcec4fe15.tar.gz
core-26d5407a5f653e55ec9255117760886bcec4fe15.zip
basegfx tree cleanup
- Eliminated an unnecessary boost/bind.hxx include. - Replaced simple old-style for loops that iterated over a container by ranged based for loops. - Replaced for_each by ranged based for loops wherever valid. Change-Id: Ib5c8291cf6d417047b350560f0428723efeccd1c Reviewed-on: https://gerrit.libreoffice.org/19679 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basegfx/test')
-rw-r--r--basegfx/test/boxclipper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/basegfx/test/boxclipper.cxx b/basegfx/test/boxclipper.cxx
index 7e0bfa5196bf..406f6b23737e 100644
--- a/basegfx/test/boxclipper.cxx
+++ b/basegfx/test/boxclipper.cxx
@@ -164,10 +164,8 @@ public:
tools::importFromSvgD(
randomPoly,
OUString::createFromAscii(randomSvg), false, 0);
- std::for_each(randomPoly.begin(),
- randomPoly.end(),
- [this](const B2DPolygon& aPolygon) mutable {
- this->aRandomIntersections.appendElement(aPolygon.getB2DRange(), B2VectorOrientation::Negative); } );
+ for (auto const& aPolygon : randomPoly)
+ aRandomIntersections.appendElement(aPolygon.getB2DRange(), B2VectorOrientation::Negative);
#endif
}