[geos-commits] r2957 - trunk/capi

svn_geos at osgeo.org svn_geos at osgeo.org
Mon Mar 29 07:21:09 EDT 2010


Author: mloskot
Date: 2010-03-29 07:21:06 -0400 (Mon, 29 Mar 2010)
New Revision: 2957

Modified:
   trunk/capi/geos_ts_c.cpp
Log:
No need to load the whole std namespace to use std::vector only.

Modified: trunk/capi/geos_ts_c.cpp
===================================================================
--- trunk/capi/geos_ts_c.cpp	2010-03-26 12:35:58 UTC (rev 2956)
+++ trunk/capi/geos_ts_c.cpp	2010-03-29 11:21:06 UTC (rev 2957)
@@ -4765,21 +4765,20 @@
 
     using namespace geos::geom;
     using namespace geos::util;
-    using namespace std;
 
     try
     {
 
     /* 1: extract points */
-    vector<const Coordinate*> coords;
+    std::vector<const Coordinate*> coords;
     UniqueCoordinateArrayFilter filter(coords);
     g->apply_ro(&filter);
 
     /* 2: for each point, create a geometry and put into a vector */
-    vector<Geometry*>* points = new vector<Geometry*>();
+    std::vector<Geometry*>* points = new std::vector<Geometry*>();
     points->reserve(coords.size());
     const GeometryFactory* factory = g->getFactory();
-    for (vector<const Coordinate*>::iterator it=coords.begin(),
+    for (std::vector<const Coordinate*>::iterator it=coords.begin(),
                                              itE=coords.end();
                                              it != itE; ++it)
     {



More information about the geos-commits mailing list