From ae05c0b9469b1f8cba60408e55418c3d2755a62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20M=C3=B6bius?= Date: Wed, 23 Aug 2023 09:08:43 +0200 Subject: [PATCH] Fixed shadowed variables --- src/OpenMesh/Tools/VDPM/VHierarchy.cc | 12 ++++++------ src/OpenMesh/Tools/VDPM/VHierarchy.hh | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/OpenMesh/Tools/VDPM/VHierarchy.cc b/src/OpenMesh/Tools/VDPM/VHierarchy.cc index 6e59b944..02a0a5cf 100644 --- a/src/OpenMesh/Tools/VDPM/VHierarchy.cc +++ b/src/OpenMesh/Tools/VDPM/VHierarchy.cc @@ -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); diff --git a/src/OpenMesh/Tools/VDPM/VHierarchy.hh b/src/OpenMesh/Tools/VDPM/VHierarchy.hh index b512b2d7..1356a7ce 100644 --- a/src/OpenMesh/Tools/VDPM/VHierarchy.hh +++ b/src/OpenMesh/Tools/VDPM/VHierarchy.hh @@ -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);