diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2019-01-02 09:41:30 +0000 |
| commit | 169dff19d4da8d76e69b8e896aa25b0013639c03 (patch) | |
| tree | a0c070fa95188b5cde708ac285e6a2db9df4a83f /src/livarot/ShapeRaster.cpp | |
| parent | Avoid creating a new document before opening an old document. (diff) | |
| download | inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.tar.gz inkscape-169dff19d4da8d76e69b8e896aa25b0013639c03.zip | |
modernize loops
Diffstat (limited to 'src/livarot/ShapeRaster.cpp')
| -rw-r--r-- | src/livarot/ShapeRaster.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/livarot/ShapeRaster.cpp b/src/livarot/ShapeRaster.cpp index 292b0a7f1..7aa300ed0 100644 --- a/src/livarot/ShapeRaster.cpp +++ b/src/livarot/ShapeRaster.cpp @@ -1978,8 +1978,7 @@ void Shape::_countUpDownTotalDegree2(int P, *upEdge = -1; *downEdge = -1; - for (int i = 0; i < 2; i++) { - int const j = getPoint(P).incidentEdge[i]; + for (int j : getPoint(P).incidentEdge) { Shape::dg_arete const &e = getEdge(j); if ( P == std::max(e.st, e.en) ) { *upEdge = j; |
