[geos-commits] [SCM] GEOS branch 3.12 updated. d20c3ee78286205b4aefbcbddf5648dc749d4bb6

git at osgeo.org git at osgeo.org
Thu May 23 21:18:16 PDT 2024


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, 3.12 has been updated
       via  d20c3ee78286205b4aefbcbddf5648dc749d4bb6 (commit)
      from  c6d30082ec10e1a2bd3879ef0c3fdeb0413f0500 (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 d20c3ee78286205b4aefbcbddf5648dc749d4bb6
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Thu May 23 21:16:46 2024 -0700

    change to using auto in Coverage classes

diff --git a/src/coverage/CoveragePolygon.cpp b/src/coverage/CoveragePolygon.cpp
index 46ee29c7c..70ba4684f 100644
--- a/src/coverage/CoveragePolygon.cpp
+++ b/src/coverage/CoveragePolygon.cpp
@@ -56,7 +56,7 @@ CoveragePolygon::contains(const CoordinateXY& p) const
 {
     if (! intersectsEnv(p))
         return false;
-    IndexedPointInAreaLocator& pia = getLocator();
+    auto& pia = getLocator();
     return Location::INTERIOR == pia.locate(&p);
 }
 
diff --git a/src/coverage/CoveragePolygonValidator.cpp b/src/coverage/CoveragePolygonValidator.cpp
index 7690e2542..d0161c097 100644
--- a/src/coverage/CoveragePolygonValidator.cpp
+++ b/src/coverage/CoveragePolygonValidator.cpp
@@ -282,7 +282,7 @@ CoveragePolygonValidator::markInvalidInteriorSection(
     for (auto& adjPoly : adjCovPolygons) {
         if (adjPoly->intersectsEnv(sectionEnv)) {
             //-- test vertices in section
-            for (std::size_t i = iStart; i < iEnd; i++) {
+            for (auto i = iStart; i < iEnd; i++) {
                 markInvalidInteriorSegment(ring, i, adjPoly.get());
             }
         }
@@ -307,7 +307,7 @@ CoveragePolygonValidator::markInvalidInteriorSegment(
     if (adjPoly->contains(p)) {
         ring.markInvalid(i);
         //-- previous segment may be interior (but may also be matched)
-        std::size_t iPrev = i == 0 ? ring.size()-2 : i-1;
+        auto iPrev = i == 0 ? ring.size()-2 : i-1;
         if (! ring.isKnown(iPrev))
             ring.markInvalid(iPrev);
     }

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

Summary of changes:
 src/coverage/CoveragePolygon.cpp          | 2 +-
 src/coverage/CoveragePolygonValidator.cpp | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list