summaryrefslogtreecommitdiffstats
path: root/src/extension/internal/wmf-print.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/extension/internal/wmf-print.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/extension/internal/wmf-print.cpp')
-rw-r--r--src/extension/internal/wmf-print.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/extension/internal/wmf-print.cpp b/src/extension/internal/wmf-print.cpp
index 1604a8d48..7d13e218a 100644
--- a/src/extension/internal/wmf-print.cpp
+++ b/src/extension/internal/wmf-print.cpp
@@ -833,9 +833,9 @@ unsigned int PrintWmf::fill(
Dashes converted to line segments will "open" a closed path.
*/
bool all_closed = true;
- for (Geom::PathVector::const_iterator pit = pathv.begin(); pit != pathv.end(); ++pit) {
- for (Geom::Path::const_iterator cit = pit->begin(); cit != pit->end_open(); ++cit) {
- if (pit->end_default() != pit->end_closed()) {
+ for (const auto & pit : pathv) {
+ for (Geom::Path::const_iterator cit = pit.begin(); cit != pit.end_open(); ++cit) {
+ if (pit.end_default() != pit.end_closed()) {
all_closed = false;
}
}
@@ -881,8 +881,8 @@ unsigned int PrintWmf::stroke(
double tlength; // length of tmp_pathpw
double slength = 0.0; // start of gragment
double elength; // end of gragment
- for (unsigned int i = 0; i < pathv.size(); i++) {
- tmp_pathpw.concat(pathv[i].toPwSb());
+ for (const auto & i : pathv) {
+ tmp_pathpw.concat(i.toPwSb());
}
tlength = length(tmp_pathpw, 0.1);
tmp_pathpw2 = arc_length_parametrization(tmp_pathpw);