[geos-commits] [SCM] GEOS branch main updated. 6de25db755162d79e24474924ae05ee1c37aafb0

git at osgeo.org git at osgeo.org
Thu May 23 21:17:05 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, main has been updated
       via  6de25db755162d79e24474924ae05ee1c37aafb0 (commit)
      from  44e648dee12f13a73e57759bcc8bd145df9dd8c4 (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 6de25db755162d79e24474924ae05ee1c37aafb0
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