diff options
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; |
