From 4b12ab4d055d3c080f93e52f7e5a4b2dec01d30e Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <github@naumov.de>
Date: Wed, 19 May 2021 11:21:04 +0200
Subject: [PATCH] [GL] Make class members private.

Moving them from protected section. All of the access
is now through public interface and these parts can
be hidden.
---
 GeoLib/SimplePolygonTree.h | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/GeoLib/SimplePolygonTree.h b/GeoLib/SimplePolygonTree.h
index 7ceda36eac1..c15a6b6ecd1 100644
--- a/GeoLib/SimplePolygonTree.h
+++ b/GeoLib/SimplePolygonTree.h
@@ -58,21 +58,22 @@ public:
     /** returns the number of children */
     std::size_t getNumberOfChildren() const { return _children.size(); }
 
-protected:
+private:
     /**
      * the polygon this node stands for
      */
     Polygon* _node_polygon;
-    /**
-     * the polygon represented by this node is contained in the
-     * polygon represented by the parent node in the tree
-     */
-    SimplePolygonTree* _parent;
+
     /**
      * list of polygons (represented by SimplePolygonTree nodes) contained
      * in the _node_polygon
      */
     std::list<SimplePolygonTree*> _children;
+    /**
+     * the polygon represented by this node is contained in the
+     * polygon represented by the parent node in the tree
+     */
+    SimplePolygonTree* _parent;
 
 public:
     decltype(_children)::iterator begin() { return _children.begin(); }
-- 
GitLab