[geos-commits] r2032 - in trunk: . source/headers/geos/io

svn_geos at osgeo.org svn_geos at osgeo.org
Thu Nov 22 21:33:42 EST 2007


Author: mloskot
Date: 2007-11-22 21:33:41 -0500 (Thu, 22 Nov 2007)
New Revision: 2032

Modified:
   trunk/ChangeLog
   trunk/source/headers/geos/io/WKBWriter.h
Log:
A bit of purification with explicit casting int to bool type.

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-11-02 22:41:19 UTC (rev 2031)
+++ trunk/ChangeLog	2007-11-23 02:33:41 UTC (rev 2032)
@@ -1,3 +1,9 @@
+
+2007-11-22 Mateusz Loskot <mateusz at loskot.net>
+
+	* source/headers/geos/io/WKBWriter.h: added purifying cast of 
+	  int value to bool.
+
 2007-06-11 Mateusz Loskot <mateusz at loskot.net>
 
 	* tests/unit/operation/IsSimpleOpTest.cpp,

Modified: trunk/source/headers/geos/io/WKBWriter.h
===================================================================
--- trunk/source/headers/geos/io/WKBWriter.h	2007-11-02 22:41:19 UTC (rev 2031)
+++ trunk/source/headers/geos/io/WKBWriter.h	2007-11-23 02:33:41 UTC (rev 2032)
@@ -107,7 +107,7 @@
 	 * Sets whether SRID values should be output by the
 	 * <code>WKBWriter</code>.
 	 */
-	virtual void setIncludeSRID(int newIncludeSRID) { includeSRID=newIncludeSRID; }
+	virtual void setIncludeSRID(int newIncludeSRID) { includeSRID=static_cast<bool>(newIncludeSRID); }
 
 	/**
 	 * \brief Write a Geometry to an ostream.



More information about the geos-commits mailing list