Skip to content

Commit

Permalink
Const declare zero length function
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Aug 14, 2024
1 parent 1389211 commit cc9c0e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/geos/operation/relateng/RelateGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -160,7 +160,7 @@ class GEOS_DLL RelateGeometry {
return geomEnv;
}

int getDimension() const {
inline int getDimension() const {
return geomDim;
}

Expand Down

0 comments on commit cc9c0e3

Please sign in to comment.