]> git.sesse.net Git - vlc/commitdiff
skins2: fix forgotten initialization in copy constructor
authorErwan Tulou <erwan10@videolan.org>
Tue, 10 Apr 2012 16:02:29 +0000 (18:02 +0200)
committerErwan Tulou <erwan10@videolan.org>
Tue, 10 Apr 2012 16:28:04 +0000 (18:28 +0200)
This bug was unnoticed because this constructor is only called in a situation
where really copying from origin or leaving it to the compiler to set it via
the default constructor leads to the same result (an empty list). Yet, this
was a bug.

It may solve trac #6599 though,
(a Linux port where there is a real initialization issue)

modules/gui/skins2/utils/var_tree.cpp

index bf476858331243ba1166a38d52dbec4f2d86ef6d..025876afe6aa910d0543cef68cc5c488d3434ec2 100644 (file)
@@ -58,7 +58,8 @@ VarTree::VarTree( intf_thread_t *pIntf, VarTree *pParent, int id,
 }
 
 VarTree::VarTree( const VarTree& v )
-    : Variable( v.getIntf() ), m_pParent( v.m_pParent ),
+    : Variable( v.getIntf() ),
+      m_children( v.m_children), m_pParent( v.m_pParent ),
       m_id( v.m_id ), m_cString( v.m_cString ),
       m_readonly( v.m_readonly ), m_selected( v.m_selected ),
       m_playing( v.m_playing ), m_expanded( v.m_expanded ),