[geos-commits] [SCM] GEOS branch svn-3.5 updated. 51848c150bc1b5e1666ac49088f6c1ef6bcb270c

git at osgeo.org git at osgeo.org
Mon Sep 24 08:31:56 PDT 2018


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, svn-3.5 has been updated
       via  51848c150bc1b5e1666ac49088f6c1ef6bcb270c (commit)
      from  5e490724af7c97c9ca3fca8292e12ef3be40afbb (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 51848c150bc1b5e1666ac49088f6c1ef6bcb270c
Author: Daniel Baston <dbaston at gmail.com>
Date:   Mon Sep 24 10:47:36 2018 -0400

    Remove nullptr for C++98

diff --git a/tests/unit/capi/GEOSUnaryUnionTest.cpp b/tests/unit/capi/GEOSUnaryUnionTest.cpp
index 0f7705d..1fb8c01 100644
--- a/tests/unit/capi/GEOSUnaryUnionTest.cpp
+++ b/tests/unit/capi/GEOSUnaryUnionTest.cpp
@@ -1,4 +1,4 @@
-// 
+//
 // Test Suite for C-API GEOSUnaryUnion
 
 #include <tut.hpp>
@@ -31,7 +31,7 @@ namespace tut
             va_start(ap, fmt);
             std::vfprintf(stdout, fmt, ap);
             va_end(ap);
-        
+
             std::fprintf(stdout, "\n");
         }
 
@@ -42,7 +42,7 @@ namespace tut
             wktw_ = GEOSWKTWriter_create();
             GEOSWKTWriter_setTrim(wktw_, 1);
             GEOSWKTWriter_setOutputDimension(wktw_, 3);
-        }       
+        }
 
         std::string toWKT(GEOSGeometry* g)
         {
@@ -213,10 +213,10 @@ namespace tut
     void object::test<10>()
     {
         geom1_ = GEOSGeomFromWKT("LINESTRING EMPTY");
-        ensure( nullptr != geom1_ );
+        ensure( 0 != geom1_ );
 
         geom2_ = GEOSUnaryUnion(geom1_);
-        ensure( nullptr != geom2_ );
+        ensure( 0 != geom2_ );
 
         ensure_equals(toWKT(geom2_), std::string("GEOMETRYCOLLECTION EMPTY"));
     }
diff --git a/tests/unit/operation/union/UnaryUnionOpTest.cpp b/tests/unit/operation/union/UnaryUnionOpTest.cpp
index 18e7a5e..65df29c 100644
--- a/tests/unit/operation/union/UnaryUnionOpTest.cpp
+++ b/tests/unit/operation/union/UnaryUnionOpTest.cpp
@@ -1,4 +1,4 @@
-// 
+//
 // Test Suite for geos::operation::geounion::UnaryUnionOp class.
 
 // tut
@@ -136,7 +136,7 @@ namespace tut
     template<>
     void object::test<4>()
     {
-        static char const* const geoms[] = 
+        static char const* const geoms[] =
         {
             "POLYGON ((0 0, 10 0, 10 10, 0 10, 0 0))",
             "MULTIPOLYGON (((20 0, 20 10, 40 10, 40 0, 20 0)),((5 5, 5 8, 8 8, 8 5, 5 5)))",
@@ -154,7 +154,7 @@ namespace tut
     template<>
     void object::test<5>()
     {
-        static char const* const geoms[] = 
+        static char const* const geoms[] =
         {
             "LINESTRING (40 60, 120 110)",
             "POINT (120 110)",
@@ -170,7 +170,7 @@ namespace tut
     template<>
     void object::test<6>()
     {
-        static char const* const geoms[] = 
+        static char const* const geoms[] =
         {
             "LINESTRING (0 0, 10 0, 5 -5, 5 5)",
             NULL
@@ -185,7 +185,7 @@ namespace tut
         static char const* const geoms[] =
         {
             "LINESTRING EMPTY",
-            nullptr
+            NULL
         };
         doTest(geoms, "GEOMETRYCOLLECTION EMPTY");
     }

-----------------------------------------------------------------------

Summary of changes:
 tests/unit/capi/GEOSUnaryUnionTest.cpp          | 10 +++++-----
 tests/unit/operation/union/UnaryUnionOpTest.cpp | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list