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

git at osgeo.org git at osgeo.org
Tue Jan 14 13:34:00 PST 2025


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  db50ec0b856bba55bd4ea1aa3631cfff1235eddb (commit)
      from  919bd447e41fc7007537dd7d4ddd3a783c51005d (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 db50ec0b856bba55bd4ea1aa3631cfff1235eddb
Author: Martin Davis <mtnclimb at gmail.com>
Date:   Tue Jan 14 13:32:25 2025 -0800

    Fix MaximumInscribedCircle param to const

diff --git a/include/geos/algorithm/construct/MaximumInscribedCircle.h b/include/geos/algorithm/construct/MaximumInscribedCircle.h
index b838a177c..eaa2fb93f 100644
--- a/include/geos/algorithm/construct/MaximumInscribedCircle.h
+++ b/include/geos/algorithm/construct/MaximumInscribedCircle.h
@@ -137,7 +137,7 @@ private:
     geom::CoordinateXY radiusPt;
 
     /* private methods */
-    double distanceToBoundary(geom::Point& pt);
+    double distanceToBoundary(const geom::Point& pt);
     double distanceToBoundary(double x, double y);
     void compute();
 
diff --git a/src/algorithm/construct/MaximumInscribedCircle.cpp b/src/algorithm/construct/MaximumInscribedCircle.cpp
index 7dc85b8c6..a8f83d1be 100644
--- a/src/algorithm/construct/MaximumInscribedCircle.cpp
+++ b/src/algorithm/construct/MaximumInscribedCircle.cpp
@@ -152,7 +152,7 @@ MaximumInscribedCircle::distanceToBoundary(double x, double y)
 
 /* private */
 double
-MaximumInscribedCircle::distanceToBoundary(Point& pt)
+MaximumInscribedCircle::distanceToBoundary(const Point& pt)
 {
     double dist = indexedDistance.distance(&pt);
     // double dist = inputGeomBoundary->distance(pt.get());

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

Summary of changes:
 include/geos/algorithm/construct/MaximumInscribedCircle.h | 2 +-
 src/algorithm/construct/MaximumInscribedCircle.cpp        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list