[geos-commits] [SCM] GEOS branch master updated. 8825bd16cbbbe2154862da47be6c3c67fc511738

git at osgeo.org git at osgeo.org
Thu Nov 19 06:45:21 PST 2020


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  8825bd16cbbbe2154862da47be6c3c67fc511738 (commit)
      from  617bfb57b87941cc3210d75772957038cff854de (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 8825bd16cbbbe2154862da47be6c3c67fc511738
Author: Sandro Santilli <strk at kbt.io>
Date:   Thu Nov 19 15:44:57 2020 +0100

    Fix initialization order warnings

diff --git a/include/geos/index/strtree/SimpleSTRnode.h b/include/geos/index/strtree/SimpleSTRnode.h
index 45c1ad8..1826382 100644
--- a/include/geos/index/strtree/SimpleSTRnode.h
+++ b/include/geos/index/strtree/SimpleSTRnode.h
@@ -51,9 +51,8 @@ public:
      * Constructs an AbstractNode at the given level in the tree
      */
     SimpleSTRnode(std::size_t newLevel, const geom::Envelope *itemEnv, void* item, size_t capacity = 10)
-        : level(newLevel)
-        , bounds()
-        , item(item)
+        : item(item)
+        , level(newLevel)
     {
         childNodes.reserve(capacity);
         if (itemEnv) {
diff --git a/include/geos/index/strtree/SimpleSTRtree.h b/include/geos/index/strtree/SimpleSTRtree.h
index 82c2ef6..3477ab0 100644
--- a/include/geos/index/strtree/SimpleSTRtree.h
+++ b/include/geos/index/strtree/SimpleSTRtree.h
@@ -109,8 +109,8 @@ public:
      */
     SimpleSTRtree(std::size_t capacity = 10)
         : nodeCapacity(capacity)
-        , built(false)
         , root(nullptr)
+        , built(false)
         {};
 
     std::size_t getNodeCapacity() const {

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

Summary of changes:
 include/geos/index/strtree/SimpleSTRnode.h | 5 ++---
 include/geos/index/strtree/SimpleSTRtree.h | 2 +-
 2 files changed, 3 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list