diff --git a/include/geos/geom/prep/PreparedLineStringIntersects.h b/include/geos/geom/prep/PreparedLineStringIntersects.h index 026455df5f..980b0b0ebc 100644 --- a/include/geos/geom/prep/PreparedLineStringIntersects.h +++ b/include/geos/geom/prep/PreparedLineStringIntersects.h @@ -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) { } @@ -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