[geos-commits] r3062 - in trunk: capi php

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Jun 23 05:31:32 EDT 2010


Author: strk
Date: 2010-06-23 09:31:32 +0000 (Wed, 23 Jun 2010)
New Revision: 3062

Modified:
   trunk/capi/geos_c.cpp
   trunk/capi/geos_c.h.in
   trunk/capi/geos_ts_c.cpp
   trunk/php/geos.c
Log:
There's no point for GEOSisValidDetail to take output parameter as const pointer


Modified: trunk/capi/geos_c.cpp
===================================================================
--- trunk/capi/geos_c.cpp	2010-06-23 09:23:29 UTC (rev 3061)
+++ trunk/capi/geos_c.cpp	2010-06-23 09:31:32 UTC (rev 3062)
@@ -203,7 +203,7 @@
 
 char
 GEOSisValidDetail(const Geometry *g,
-	char** reason, const Geometry ** location)
+	char** reason, Geometry ** location)
 {
     return GEOSisValidDetail_r( handle, g, reason, location );
 }

Modified: trunk/capi/geos_c.h.in
===================================================================
--- trunk/capi/geos_c.h.in	2010-06-23 09:23:29 UTC (rev 3061)
+++ trunk/capi/geos_c.h.in	2010-06-23 09:31:32 UTC (rev 3062)
@@ -752,7 +752,7 @@
 /* caller has the responsibility to destroy 'reason' (GEOSFree)
  * and 'location' (GEOSGeom_destroy) Sparams */
 extern char GEOS_DLL GEOSisValidDetail(const GEOSGeometry* g, char** reason,
-                                         const GEOSGeometry** location);
+                                         GEOSGeometry** location);
 extern char GEOS_DLL GEOSisSimple(const GEOSGeometry* g1);
 extern char GEOS_DLL GEOSisRing(const GEOSGeometry* g1);
 extern char GEOS_DLL GEOSHasZ(const GEOSGeometry* g1);
@@ -768,7 +768,7 @@
  * and 'location' (GEOSGeom_destroy_r) Sparams */
 extern char GEOS_DLL GEOSisValidDetail_r(GEOSContextHandle_t handle,
                                          const GEOSGeometry* g, char** reason,
-                                         const GEOSGeometry** location);
+                                         GEOSGeometry** location);
 extern char GEOS_DLL GEOSisSimple_r(GEOSContextHandle_t handle,
                                     const GEOSGeometry* g1);
 extern char GEOS_DLL GEOSisRing_r(GEOSContextHandle_t handle,

Modified: trunk/capi/geos_ts_c.cpp
===================================================================
--- trunk/capi/geos_ts_c.cpp	2010-06-23 09:23:29 UTC (rev 3061)
+++ trunk/capi/geos_ts_c.cpp	2010-06-23 09:31:32 UTC (rev 3062)
@@ -668,7 +668,7 @@
 
 char
 GEOSisValidDetail_r(GEOSContextHandle_t extHandle, const Geometry *g,
-	char** reason, const Geometry ** location)
+	char** reason, Geometry ** location)
 {
     if ( 0 == extHandle )
     {

Modified: trunk/php/geos.c
===================================================================
--- trunk/php/geos.c	2010-06-23 09:23:29 UTC (rev 3061)
+++ trunk/php/geos.c	2010-06-23 09:31:32 UTC (rev 3062)
@@ -1063,7 +1063,7 @@
 
     this = (GEOSGeometry*)getRelay(getThis(), Geometry_ce_ptr);
 
-    ret = GEOSisValidDetail(this, &reason, (const GEOSGeometry**)&location);
+    ret = GEOSisValidDetail(this, &reason, &location);
     if ( ret == 2 ) RETURN_NULL(); /* should get an exception first */
 
     if ( reason ) {



More information about the geos-commits mailing list