[geos-commits] [SCM] GEOS branch master updated. c28d0f0820c57aa7c29010f47165c6aa966ac0d6

git at osgeo.org git at osgeo.org
Wed Nov 28 14:06:59 PST 2018


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  c28d0f0820c57aa7c29010f47165c6aa966ac0d6 (commit)
      from  81a133670f9ea213e47468e13d4b12352993bced (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 c28d0f0820c57aa7c29010f47165c6aa966ac0d6
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Nov 28 14:06:44 2018 -0800

    One better, use C++11 auto iterator on the vector

diff --git a/src/operation/overlay/PolygonBuilder.cpp b/src/operation/overlay/PolygonBuilder.cpp
index 8f0090a..bea7be6 100644
--- a/src/operation/overlay/PolygonBuilder.cpp
+++ b/src/operation/overlay/PolygonBuilder.cpp
@@ -335,9 +335,8 @@ PolygonBuilder::findEdgeRingContaining(EdgeRing *testEr,
 	EdgeRing *minShell=nullptr;
 	const Envelope *minShellEnv=nullptr;
 
-	for(vector<EdgeRing*>::iterator it = newShellList.begin(); it != newShellList.end(); ++it)
+	for(auto tryShell: newShellList)
 	{
-		EdgeRing *tryShell=*it;
 		LinearRing *tryShellRing=tryShell->getLinearRing();
 		const Envelope *tryShellEnv=tryShellRing->getEnvelopeInternal();
 		// the hole envelope cannot equal the shell envelope

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

Summary of changes:
 src/operation/overlay/PolygonBuilder.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list