summaryrefslogtreecommitdiffstats
path: root/src/object/sp-polygon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/sp-polygon.cpp')
-rw-r--r--src/object/sp-polygon.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/sp-polygon.cpp b/src/object/sp-polygon.cpp
index a528b99cd..ac47fca8b 100644
--- a/src/object/sp-polygon.cpp
+++ b/src/object/sp-polygon.cpp
@@ -44,8 +44,8 @@ static gchar *sp_svg_write_polygon(Geom::PathVector const & pathv)
{
Inkscape::SVGOStringStream os;
- for (Geom::PathVector::const_iterator pit = pathv.begin(); pit != pathv.end(); ++pit) {
- for (Geom::Path::const_iterator cit = pit->begin(); cit != pit->end_default(); ++cit) {
+ for (const auto & pit : pathv) {
+ for (Geom::Path::const_iterator cit = pit.begin(); cit != pit.end_default(); ++cit) {
if ( is_straight_curve(*cit) )
{
os << cit->finalPoint()[0] << "," << cit->finalPoint()[1] << " ";