[geos-commits] r4053 - trunk/tests/unit/geom/prep

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Apr 20 09:59:55 PDT 2015


Author: strk
Date: 2015-04-20 09:59:55 -0700 (Mon, 20 Apr 2015)
New Revision: 4053

Modified:
   trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp
Log:
Fix unused variables warnings

Modified: trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp
===================================================================
--- trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp	2015-04-20 16:59:49 UTC (rev 4052)
+++ trunk/tests/unit/geom/prep/PreparedGeometryFactoryTest.cpp	2015-04-20 16:59:55 UTC (rev 4053)
@@ -77,9 +77,8 @@
         try
         {
             GeometryPtr nullgeom = 0; // intentionally nullptr
-            prep::PreparedGeometry const* pg = 0;
 
-            pg = prep::PreparedGeometryFactory::prepare(nullgeom);
+            prep::PreparedGeometryFactory::prepare(nullgeom);
 
             fail("IllegalArgumentException expected");
         }
@@ -98,12 +97,10 @@
         try
         {
             GeometryPtr nullgeom = 0; // intentionally nullptr
-            prep::PreparedGeometry const* pg = 0;
 
             prep::PreparedGeometryFactory pgf;
+            pgf.create(nullgeom);
 
-            pg = pgf.create(nullgeom);
-
             fail("IllegalArgumentException expected");
         }
         catch (geos::util::IllegalArgumentException const& e)



More information about the geos-commits mailing list