[Liblas-commits] hg: return bool() of a test instead of a number
liblas-commits at liblas.org
liblas-commits at liblas.org
Wed Jun 22 12:48:31 EDT 2011
details: http://hg.liblas.orghg/rev/340de455b3a0
changeset: 2993:340de455b3a0
user: Howard Butler <hobu.inc at gmail.com>
date: Wed Jun 22 11:48:24 2011 -0500
description:
return bool() of a test instead of a number
diffstat:
src/spatialreference.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 6bb00e9076ce -r 340de455b3a0 src/spatialreference.cpp
--- a/src/spatialreference.cpp Wed Jun 22 11:22:19 2011 -0500
+++ b/src/spatialreference.cpp Wed Jun 22 11:48:24 2011 -0500
@@ -134,7 +134,7 @@
OSRDestroySpatialReference( current );
OSRDestroySpatialReference( other );
- return bool(output);
+ return bool(output == 1);
#else
throw std::runtime_error ("SpatialReference equality testing not available without GDAL+libgeotiff support");
More information about the Liblas-commits
mailing list