[geos-commits] [SCM] GEOS branch master updated. 5ee58d939711a47fa2c34649f788eb988fdece07

git at osgeo.org git at osgeo.org
Tue Nov 24 14:36:47 PST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  5ee58d939711a47fa2c34649f788eb988fdece07 (commit)
      from  cdbf1c938d7a89990c3c2d2e58a36b689120f9d2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5ee58d939711a47fa2c34649f788eb988fdece07
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Tue Nov 24 14:36:38 2020 -0800

    Change to automatic iterator syntax

diff --git a/src/noding/SegmentNodeList.cpp b/src/noding/SegmentNodeList.cpp
index 12d8ad4..ec5cebc 100644
--- a/src/noding/SegmentNodeList.cpp
+++ b/src/noding/SegmentNodeList.cpp
@@ -91,11 +91,7 @@ SegmentNodeList::addCollapsedNodes()
     findCollapsesFromExistingVertices(collapsedVertexIndexes);
 
     // node the collapses
-    for(std::vector<size_t>::iterator
-            i = collapsedVertexIndexes.begin(),
-            e = collapsedVertexIndexes.end();
-            i != e; ++i) {
-        auto vertexIndex = *i;
+    for(std::size_t vertexIndex : collapsedVertexIndexes) {
         add(edge.getCoordinate(vertexIndex), vertexIndex);
     }
 }

-----------------------------------------------------------------------

Summary of changes:
 src/noding/SegmentNodeList.cpp | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list