[geos-commits] [SCM] GEOS branch main updated. 0bae66a5d626ab08f12941a5b9127bf40534f5e0

git at osgeo.org git at osgeo.org
Tue Jan 14 13:32:48 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, main has been updated
       via  0bae66a5d626ab08f12941a5b9127bf40534f5e0 (commit)
      from  d9a84487f21edc967b137e44a4feb8122f8afbb2 (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 0bae66a5d626ab08f12941a5b9127bf40534f5e0
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 f19a954f1..af4260c49 100644
--- a/include/geos/algorithm/construct/MaximumInscribedCircle.h
+++ b/include/geos/algorithm/construct/MaximumInscribedCircle.h
@@ -136,7 +136,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