From 169dff19d4da8d76e69b8e896aa25b0013639c03 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Wed, 2 Jan 2019 10:41:30 +0100 Subject: modernize loops --- src/livarot/ShapeRaster.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/livarot/ShapeRaster.cpp') 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; -- cgit v1.2.3