vlc | branch: master | Erwan Tulou <[email protected]> | Tue Aug 10 11:45:52 2010 +0200| [226d4e65f7c7034a858654c18fc951ec4ed73009] | committer: Erwan Tulou
skins2: VarTree, make root() a private function > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=226d4e65f7c7034a858654c18fc951ec4ed73009 --- modules/gui/skins2/utils/var_tree.hpp | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/gui/skins2/utils/var_tree.hpp b/modules/gui/skins2/utils/var_tree.hpp index c03425e..3291dc2 100644 --- a/modules/gui/skins2/utils/var_tree.hpp +++ b/modules/gui/skins2/utils/var_tree.hpp @@ -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; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
