From cc9c0e382b2f6b0757ab4640153379828e16b55e Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 14 Aug 2024 15:31:46 -0700 Subject: [PATCH] Const declare zero length function --- include/geos/operation/relateng/RelateGeometry.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/geos/operation/relateng/RelateGeometry.h b/include/geos/operation/relateng/RelateGeometry.h index df0277d19c..e96a3b8787 100644 --- a/include/geos/operation/relateng/RelateGeometry.h +++ b/include/geos/operation/relateng/RelateGeometry.h @@ -97,7 +97,7 @@ class GEOS_DLL RelateGeometry { static bool isZeroLength(const LineString* line); - bool isZeroLengthLine(const Geometry* g) { + bool isZeroLengthLine(const Geometry* g) const { // avoid expensive zero-length calculation if not linear if (getDimension() != Dimension::L) return false; @@ -160,7 +160,7 @@ class GEOS_DLL RelateGeometry { return geomEnv; } - int getDimension() const { + inline int getDimension() const { return geomDim; }