summaryrefslogtreecommitdiffstats
path: root/src/svg/svg-path.cpp
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2019-01-02 09:41:30 +0000
commit169dff19d4da8d76e69b8e896aa25b0013639c03 (patch)
treea0c070fa95188b5cde708ac285e6a2db9df4a83f /src/svg/svg-path.cpp
parentAvoid creating a new document before opening an old document. (diff)
downloadinkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz
inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip
modernize loops
Diffstat (limited to 'src/svg/svg-path.cpp')
-rw-r--r--src/svg/svg-path.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/svg/svg-path.cpp b/src/svg/svg-path.cpp
index 6867cfd96..1414d6972 100644
--- a/src/svg/svg-path.cpp
+++ b/src/svg/svg-path.cpp
@@ -89,8 +89,8 @@ static void sp_svg_write_curve(Inkscape::SVG::PathString & str, Geom::Curve cons
Geom::Path sbasis_path = Geom::cubicbezierpath_from_sbasis(c->toSBasis(), 0.1);
//recurse to convert the new path resulting from the sbasis to svgd
- for(Geom::Path::iterator iter = sbasis_path.begin(); iter != sbasis_path.end(); ++iter) {
- sp_svg_write_curve(str, &(*iter));
+ for(const auto & iter : sbasis_path) {
+ sp_svg_write_curve(str, &iter);
}
}
}
@@ -110,8 +110,8 @@ static void sp_svg_write_path(Inkscape::SVG::PathString & str, Geom::Path const
gchar * sp_svg_write_path(Geom::PathVector const &p) {
Inkscape::SVG::PathString str;
- for(Geom::PathVector::const_iterator pit = p.begin(); pit != p.end(); ++pit) {
- sp_svg_write_path(str, *pit);
+ for(const auto & pit : p) {
+ sp_svg_write_path(str, pit);
}
return g_strdup(str.c_str());