summaryrefslogtreecommitdiff
path: root/svx/source/xoutdev/_xpoly.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/xoutdev/_xpoly.cxx')
-rw-r--r--svx/source/xoutdev/_xpoly.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx
index 286d8c9ea834..74980ecdc994 100644
--- a/svx/source/xoutdev/_xpoly.cxx
+++ b/svx/source/xoutdev/_xpoly.cxx
@@ -855,10 +855,9 @@ XPolyPolygon::XPolyPolygon( XPolyPolygon&& ) = default;
XPolyPolygon::XPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPolygon)
: pImpXPolyPolygon()
{
- for(sal_uInt32 a(0); a < rPolyPolygon.count(); a++)
+ for(auto const& rCandidate : rPolyPolygon)
{
- const basegfx::B2DPolygon aCandidate = rPolyPolygon.getB2DPolygon(a);
- Insert(XPolygon(aCandidate));
+ Insert(XPolygon(rCandidate));
}
}