[geos-commits] [SCM] GEOS branch master updated. 9e46b935f9896262a1bc8c2fb7cd983f3569bef1

git at osgeo.org git at osgeo.org
Sun Nov 24 18:25:54 PST 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  9e46b935f9896262a1bc8c2fb7cd983f3569bef1 (commit)
      from  1f40f167dc3e63cec29c022787a75bdda94b452e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9e46b935f9896262a1bc8c2fb7cd983f3569bef1
Author: Daniel Baston <dbaston at gmail.com>
Date:   Sun Nov 24 21:25:24 2019 -0500

    Avoid use of int for boolean in WKBWriter

diff --git a/include/geos/io/WKBWriter.h b/include/geos/io/WKBWriter.h
index 20f5f6a..4bbadf0 100644
--- a/include/geos/io/WKBWriter.h
+++ b/include/geos/io/WKBWriter.h
@@ -134,7 +134,7 @@ public:
      * Returns whether SRID values are output by the
      * <code>WKBWriter</code>.
      */
-    virtual int
+    virtual bool
     getIncludeSRID() const
     {
         return includeSRID;
@@ -145,9 +145,9 @@ public:
      * <code>WKBWriter</code>.
      */
     virtual void
-    setIncludeSRID(int newIncludeSRID)
+    setIncludeSRID(bool newIncludeSRID)
     {
-        includeSRID = (0 == newIncludeSRID ? false : true);
+        includeSRID = newIncludeSRID;
     }
 
     /**

-----------------------------------------------------------------------

Summary of changes:
 include/geos/io/WKBWriter.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list