Fixed shadowed variables

This commit is contained in:
Jan Möbius
2023-08-23 09:08:43 +02:00
parent b0cdf58d11
commit ae05c0b946
2 changed files with 7 additions and 7 deletions

View File

@@ -99,16 +99,16 @@ add_node(const VHierarchyNode &_node)
void
VHierarchy::
make_children(VHierarchyNodeHandle &_parent_handle)
make_children(const VHierarchyNodeHandle &_parent_handle)
{
VHierarchyNodeHandle lchild_handle = add_node();
VHierarchyNodeHandle rchild_handle = add_node();
VHierarchyNodeHandle new_lchild_handle = add_node();
VHierarchyNodeHandle new_rchild_handle = add_node();
VHierarchyNode &parent = node(_parent_handle);
VHierarchyNode &lchild = node(lchild_handle);
VHierarchyNode &rchild = node(rchild_handle);
VHierarchyNode &lchild = node(new_lchild_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);
rchild.set_parent_handle(_parent_handle);

View File

@@ -119,7 +119,7 @@ public:
VHierarchyNodeHandle add_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,
VHierarchyNodeIndex _descendent_index);