From 3a1f1399bcd71d8d7ff437cc9a716e922851cedd Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 18 Mar 2002 18:51:32 +0000 Subject: [PATCH] disambiguate for() --- panda/src/pgraph/pandaNode.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/panda/src/pgraph/pandaNode.cxx b/panda/src/pgraph/pandaNode.cxx index 48c90eecb4..12abc38636 100644 --- a/panda/src/pgraph/pandaNode.cxx +++ b/panda/src/pgraph/pandaNode.cxx @@ -1034,13 +1034,14 @@ steal_children(PandaNode *other) { // the end. int num_children = other->get_num_children(); - for (int i = 0; i < num_children; i++) { + int i; + for (i = 0; i < num_children; i++) { PandaNode *child_node = other->get_child(i); int sort = other->get_child_sort(i); add_child(child_node, sort); } int num_stashed = other->get_num_stashed(); - for (int i = 0; i < num_stashed; i++) { + for (i = 0; i < num_stashed; i++) { PandaNode *child_node = other->get_stashed(i); int sort = other->get_stashed_sort(i); add_stashed(child_node, sort); @@ -1062,13 +1063,14 @@ copy_children(PandaNode *other) { return; } int num_children = other->get_num_children(); - for (int i = 0; i < num_children; i++) { + int i; + for (i = 0; i < num_children; i++) { PandaNode *child_node = other->get_child(i); int sort = other->get_child_sort(i); add_child(child_node, sort); } int num_stashed = other->get_num_stashed(); - for (int i = 0; i < num_stashed; i++) { + for (i = 0; i < num_stashed; i++) { PandaNode *child_node = other->get_stashed(i); int sort = other->get_stashed_sort(i); add_stashed(child_node, sort);