From: Sandro Santilli Date: Fri, 12 Dec 2003 13:34:20 +0000 (+0000) Subject: added missing 'const' in prototypes X-Git-Tag: pgis_0_8_1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ca5d9837f2f2a791019296c2f7473ca283e6cf27;p=postgis added missing 'const' in prototypes git-svn-id: http://svn.osgeo.org/postgis/trunk@408 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis_geos_wrapper.cpp b/postgis_geos_wrapper.cpp index 0e29c19f9..0ba606a3a 100644 --- a/postgis_geos_wrapper.cpp +++ b/postgis_geos_wrapper.cpp @@ -2,6 +2,9 @@ /* * $Log$ +* Revision 1.17 2003/12/12 13:34:20 strk +* added missing 'const' in prototypes +* * Revision 1.16 2003/12/12 12:03:30 strk * More debugging output, some code cleanup. * @@ -110,10 +113,10 @@ extern "C" char GEOSrelateOverlaps(Geometry *g1, Geometry*g2); extern "C" Geometry *PostGIS2GEOS_point(POINT3D *point,int SRID, bool is3d); -extern "C" Geometry *PostGIS2GEOS_linestring(LINE3D *line,int SRID, bool is3d); +extern "C" Geometry *PostGIS2GEOS_linestring(const LINE3D *line,int SRID, bool is3d); extern "C" Geometry *PostGIS2GEOS_polygon(POLYGON3D *polygon,int SRID, bool is3d); extern "C" Geometry *PostGIS2GEOS_multipolygon(POLYGON3D **polygons,int npolys, int SRID, bool is3d); -extern "C" Geometry *PostGIS2GEOS_multilinestring(LINE3D **lines,int nlines, int SRID, bool is3d); +extern "C" Geometry *PostGIS2GEOS_multilinestring(const LINE3D **lines,int nlines, int SRID, bool is3d); extern "C" Geometry *PostGIS2GEOS_multipoint(POINT3D **points,int npoints, int SRID, bool is3d); extern "C" Geometry *PostGIS2GEOS_box3d(BOX3D *box, int SRID); @@ -322,7 +325,7 @@ PostGIS2GEOS_linestring(const LINE3D *line,int SRID, bool is3d) } } - //polygons is an array of pointers to polygons +//polygons is an array of pointers to polygons Geometry *PostGIS2GEOS_multipolygon(POLYGON3D **polygons,int npolys, int SRID, bool is3d) { try