[geos-commits] r3926 - trunk/tests/unit/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Wed Aug 28 04:59:29 PDT 2013


Author: mloskot
Date: 2013-08-28 04:59:29 -0700 (Wed, 28 Aug 2013)
New Revision: 3926

Modified:
   trunk/tests/unit/capi/GEOSNodeTest.cpp
Log:
Replace implicit boolean conversion with explicit nullptr test

Modified: trunk/tests/unit/capi/GEOSNodeTest.cpp
===================================================================
--- trunk/tests/unit/capi/GEOSNodeTest.cpp	2013-08-28 11:58:42 UTC (rev 3925)
+++ trunk/tests/unit/capi/GEOSNodeTest.cpp	2013-08-28 11:59:29 UTC (rev 3926)
@@ -71,7 +71,7 @@
     {
         geom1_ = GEOSGeomFromWKT("LINESTRING(0 0, 10 10, 10 0, 0 10)");
         geom2_ = GEOSNode(geom1_);
-        ensure(geom2_);
+        ensure(0 != geom2_);
 
         GEOSNormalize(geom2_);
         char* wkt_c = GEOSWKTWriter_write(w_, geom2_);
@@ -90,7 +90,7 @@
     {
         geom1_ = GEOSGeomFromWKT("MULTILINESTRING((0 0, 2 0, 4 0),(5 0, 3 0, 1 0))");
         geom2_ = GEOSNode(geom1_);
-        ensure(geom2_);
+        ensure(0 != geom2_);
 
         GEOSNormalize(geom2_);
         char* wkt_c = GEOSWKTWriter_write(w_, geom2_);
@@ -109,7 +109,7 @@
     {
         geom1_ = GEOSGeomFromWKT("MULTILINESTRING((0 0, 2 0, 4 0),(0 0, 2 0, 4 0))");
         geom2_ = GEOSNode(geom1_);
-        ensure(geom2_);
+        ensure(0 != geom2_);
 
         GEOSNormalize(geom2_);
         char* wkt_c = GEOSWKTWriter_write(w_, geom2_);



More information about the geos-commits mailing list