[geos-commits] r2192 - trunk/source/headers/geos/io
svn_geos at osgeo.org
svn_geos at osgeo.org
Mon Sep 22 17:48:07 EDT 2008
Author: mloskot
Date: 2008-09-22 17:48:07 -0400 (Mon, 22 Sep 2008)
New Revision: 2192
Modified:
trunk/source/headers/geos/io/WKBWriter.h
Log:
Use conditional operators instead of cast bool to int.
Modified: trunk/source/headers/geos/io/WKBWriter.h
===================================================================
--- trunk/source/headers/geos/io/WKBWriter.h 2008-09-22 20:16:52 UTC (rev 2191)
+++ trunk/source/headers/geos/io/WKBWriter.h 2008-09-22 21:48:07 UTC (rev 2192)
@@ -118,7 +118,7 @@
* Sets whether SRID values should be output by the
* <code>WKBWriter</code>.
*/
- virtual void setIncludeSRID(int newIncludeSRID) { includeSRID=static_cast<bool>(newIncludeSRID); }
+ virtual void setIncludeSRID(int newIncludeSRID) { includeSRID = (0 == newIncludeSRID ? false : true); }
/**
* \brief Write a Geometry to an ostream.
More information about the geos-commits
mailing list