Skip to content

Commit

Permalink
PreparedLineStringIntersects: Take input by const ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaston committed Mar 1, 2023
1 parent b62955b commit 93f5d06
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions include/geos/geom/prep/PreparedLineStringIntersects.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ class PreparedLineStringIntersects {
return op.intersects(geom);
}

/**
* \todo FIXME - mloskot: Why not taking linestring through const reference?
*/
PreparedLineStringIntersects(PreparedLineString& prep)
PreparedLineStringIntersects(const PreparedLineString& prep)
: prepLine(prep)
{ }

Expand All @@ -74,7 +71,7 @@ class PreparedLineStringIntersects {
bool intersects(const geom::Geometry* g) const;

protected:
PreparedLineString& prepLine;
const PreparedLineString& prepLine;

/**
* Tests whether any representative point of the test Geometry intersects
Expand Down

0 comments on commit 93f5d06

Please sign in to comment.