]> git.sesse.net Git - vlc/commitdiff
skins2: VarTree, make root() a private function
authorErwan Tulou <erwan10@videolan.org>
Tue, 10 Aug 2010 09:45:52 +0000 (11:45 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 10 Aug 2010 16:54:35 +0000 (18:54 +0200)
modules/gui/skins2/utils/var_tree.hpp

index c03425e84a7648528b487599b595e2c97c1470f9..3291dc23e45fe48431c983928760ee4455a6c9d2 100644 (file)
@@ -111,15 +111,6 @@ public:
     Iterator next_uncle();
     Iterator prev_uncle();
 
-    /// Get root node
-    VarTree *root()
-    {
-        VarTree *parent = this;
-        while( parent->parent() != NULL )
-            parent = parent->parent();
-        return parent;
-    }
-
     /// Get first leaf
     Iterator firstLeaf();
 
@@ -187,6 +178,16 @@ public:
 
 
 private:
+
+    /// Get root node
+    VarTree *root()
+    {
+        VarTree *parent = this;
+        while( parent->parent() != NULL )
+            parent = parent->parent();
+        return parent;
+    }
+
     /// List of children
     list<VarTree> m_children;