[geos-commits] [SCM] GEOS branch main-perf-ng updated. cc9c0e382b2f6b0757ab4640153379828e16b55e
git at osgeo.org
git at osgeo.org
Wed Aug 14 15:32:19 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-perf-ng has been updated
via cc9c0e382b2f6b0757ab4640153379828e16b55e (commit)
from 1389211d4d6994707e19b505302965a79bd768ef (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 cc9c0e382b2f6b0757ab4640153379828e16b55e
Author: Paul Ramsey <pramsey at cleverelephant.ca>
Date: Wed Aug 14 15:31:46 2024 -0700
Const declare zero length function
diff --git a/include/geos/operation/relateng/RelateGeometry.h b/include/geos/operation/relateng/RelateGeometry.h
index df0277d19..e96a3b878 100644
--- a/include/geos/operation/relateng/RelateGeometry.h
+++ b/include/geos/operation/relateng/RelateGeometry.h
@@ -97,7 +97,7 @@ private:
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 @@ public:
return geomEnv;
}
- int getDimension() const {
+ inline int getDimension() const {
return geomDim;
}
-----------------------------------------------------------------------
Summary of changes:
include/geos/operation/relateng/RelateGeometry.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
hooks/post-receive
--
GEOS
More information about the geos-commits
mailing list