From db50ec0b856bba55bd4ea1aa3631cfff1235eddb Mon Sep 17 00:00:00 2001 From: Martin Davis Date: Tue, 14 Jan 2025 13:32:25 -0800 Subject: [PATCH] Fix MaximumInscribedCircle param to const --- include/geos/algorithm/construct/MaximumInscribedCircle.h | 2 +- src/algorithm/construct/MaximumInscribedCircle.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 @@ class GEOS_DLL MaximumInscribedCircle { 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());