Uses the new Vector<>. Code is more robust!

This commit is contained in:
Ricardo Quesada 2013-12-04 22:07:23 -08:00
parent 6a034a91f1
commit c617eee505
1 changed files with 2 additions and 5 deletions

View File

@ -68,11 +68,8 @@ static void printSceneGraph(int fd, Node* node, int level)
mydprintf(fd, " %s: z=%d, tag=%d\n", node->description(), node->getZOrder(), node->getTag()); mydprintf(fd, " %s: z=%d, tag=%d\n", node->description(), node->getZOrder(), node->getTag());
auto children = node->getChildren(); for(const auto& child: node->getChildren())
if( children ) { printSceneGraph(fd, child, level+1);
for(const auto& child: *children)
printSceneGraph(fd, static_cast<Node*>(child), level+1);
}
} }
static void printSceneGraphBoot(int fd) static void printSceneGraphBoot(int fd)