[geos-commits] r2200 - trunk/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Tue Oct 14 11:01:04 EDT 2008


Author: pramsey
Date: 2008-10-14 11:01:03 -0400 (Tue, 14 Oct 2008)
New Revision: 2200

Modified:
   trunk/capi/geos_c.cpp
   trunk/capi/geos_c.h.in
Log:
Consistent const declarations in c-api ($#209)


Modified: trunk/capi/geos_c.cpp
===================================================================
--- trunk/capi/geos_c.cpp	2008-10-13 22:40:31 UTC (rev 2199)
+++ trunk/capi/geos_c.cpp	2008-10-14 15:01:03 UTC (rev 2200)
@@ -2348,7 +2348,7 @@
 }
 
 void
-GEOSPreparedGeom_destroy(geos::geom::prep::PreparedGeometry *a)
+GEOSPreparedGeom_destroy(const geos::geom::prep::PreparedGeometry *a)
 {
 	try
 	{

Modified: trunk/capi/geos_c.h.in
===================================================================
--- trunk/capi/geos_c.h.in	2008-10-13 22:40:31 UTC (rev 2199)
+++ trunk/capi/geos_c.h.in	2008-10-14 15:01:03 UTC (rev 2200)
@@ -332,7 +332,7 @@
  */
 extern const GEOSPreparedGeometry GEOS_DLL *GEOSPrepare(const GEOSGeometry* g);
 
-extern void GEOS_DLL GEOSPreparedGeom_destroy(GEOSPreparedGeometry* g);
+extern void GEOS_DLL GEOSPreparedGeom_destroy(const GEOSPreparedGeometry* g);
 
 extern char GEOS_DLL GEOSPreparedContains(const GEOSPreparedGeometry* pg1, const GEOSGeometry* g2);
 extern char GEOS_DLL GEOSPreparedContainsProperly(const GEOSPreparedGeometry* pg1, const GEOSGeometry* g2);



More information about the geos-commits mailing list