Fixed shadowed variables
This commit is contained in:
@@ -99,16 +99,16 @@ add_node(const VHierarchyNode &_node)
|
|||||||
|
|
||||||
void
|
void
|
||||||
VHierarchy::
|
VHierarchy::
|
||||||
make_children(VHierarchyNodeHandle &_parent_handle)
|
make_children(const VHierarchyNodeHandle &_parent_handle)
|
||||||
{
|
{
|
||||||
VHierarchyNodeHandle lchild_handle = add_node();
|
VHierarchyNodeHandle new_lchild_handle = add_node();
|
||||||
VHierarchyNodeHandle rchild_handle = add_node();
|
VHierarchyNodeHandle new_rchild_handle = add_node();
|
||||||
|
|
||||||
VHierarchyNode &parent = node(_parent_handle);
|
VHierarchyNode &parent = node(_parent_handle);
|
||||||
VHierarchyNode &lchild = node(lchild_handle);
|
VHierarchyNode &lchild = node(new_lchild_handle);
|
||||||
VHierarchyNode &rchild = node(rchild_handle);
|
VHierarchyNode &rchild = node(new_rchild_handle);
|
||||||
|
|
||||||
parent.set_children_handle(lchild_handle);
|
parent.set_children_handle(new_lchild_handle);
|
||||||
lchild.set_parent_handle(_parent_handle);
|
lchild.set_parent_handle(_parent_handle);
|
||||||
rchild.set_parent_handle(_parent_handle);
|
rchild.set_parent_handle(_parent_handle);
|
||||||
|
|
||||||
|
|||||||
@@ -119,7 +119,7 @@ public:
|
|||||||
VHierarchyNodeHandle add_node();
|
VHierarchyNodeHandle add_node();
|
||||||
VHierarchyNodeHandle add_node(const VHierarchyNode &_node);
|
VHierarchyNodeHandle add_node(const VHierarchyNode &_node);
|
||||||
|
|
||||||
void make_children(VHierarchyNodeHandle &_parent_handle);
|
void make_children(const VHierarchyNodeHandle &_parent_handle);
|
||||||
|
|
||||||
bool is_ancestor(VHierarchyNodeIndex _ancestor_index,
|
bool is_ancestor(VHierarchyNodeIndex _ancestor_index,
|
||||||
VHierarchyNodeIndex _descendent_index);
|
VHierarchyNodeIndex _descendent_index);
|
||||||
|
|||||||
Reference in New Issue
Block a user