[geos-commits] r3089 - trunk/capi
svn_geos at osgeo.org
svn_geos at osgeo.org
Tue Aug 17 14:57:38 EDT 2010
Author: sgillies
Date: 2010-08-17 18:57:38 +0000 (Tue, 17 Aug 2010)
New Revision: 3089
Modified:
trunk/capi/geos_ts_c.cpp
Log:
Use fully qualified std::runtime_error (#371) and fix indentation
Modified: trunk/capi/geos_ts_c.cpp
===================================================================
--- trunk/capi/geos_ts_c.cpp 2010-08-17 18:33:56 UTC (rev 3088)
+++ trunk/capi/geos_ts_c.cpp 2010-08-17 18:57:38 UTC (rev 3089)
@@ -4,7 +4,6 @@
*
* C-Wrapper for GEOS library
*
- * Copyright (C) 2010 Sean Gillies <sean.gillies at gmail.com>
* Copyright (C) 2010 Sandro Santilli <strk at keybit.net>
* Copyright (C) 2005-2006 Refractions Research Inc.
*
@@ -121,8 +120,6 @@
using geos::algorithm::distance::DiscreteHausdorffDistance;
-using std::runtime_error;
-
typedef std::auto_ptr<Geometry> GeomAutoPtr;
typedef struct GEOSContextHandleInternal
@@ -168,8 +165,10 @@
// we haven't been checking allocation before ticket #371
if (0 == out)
- throw(runtime_error("Failed to allocate memory for duplicate string"));
-
+ {
+ throw(std::runtime_error("Failed to allocate memory for duplicate string"));
+ }
+
return out;
}
More information about the geos-commits
mailing list