[geos-commits] [SCM] GEOS branch master updated. 53fad1190822283ab7a166d5e5f7e03c387f5223

git at osgeo.org git at osgeo.org
Wed Nov 28 14:09:03 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  53fad1190822283ab7a166d5e5f7e03c387f5223 (commit)
      from  c28d0f0820c57aa7c29010f47165c6aa966ac0d6 (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 53fad1190822283ab7a166d5e5f7e03c387f5223
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date:   Wed Nov 28 14:08:43 2018 -0800

    OK, use a auto const& loop instead, as I read
    up on C++11

diff --git a/src/operation/overlay/PolygonBuilder.cpp b/src/operation/overlay/PolygonBuilder.cpp
index bea7be6..3057ab5 100644
--- a/src/operation/overlay/PolygonBuilder.cpp
+++ b/src/operation/overlay/PolygonBuilder.cpp
@@ -335,7 +335,7 @@ PolygonBuilder::findEdgeRingContaining(EdgeRing *testEr,
 	EdgeRing *minShell=nullptr;
 	const Envelope *minShellEnv=nullptr;
 
-	for(auto tryShell: newShellList)
+	for(auto const& tryShell: newShellList)
 	{
 		LinearRing *tryShellRing=tryShell->getLinearRing();
 		const Envelope *tryShellEnv=tryShellRing->getEnvelopeInternal();

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

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


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list