Modified to work with the new SGPropertyNode_ptr class.

This commit is contained in:
david 2002-05-10 22:58:03 +00:00
parent 86e31e696d
commit c7e6459c64

View File

@ -313,7 +313,7 @@ test_property_nodes ()
cout << endl;
cout << "Looking for all /hack[0]/bar children" << endl;
vector<SGPropertyNode *> bar = child->getChildren("bar");
vector<SGPropertyNode_ptr> bar = child->getChildren("bar");
cout << "There are " << bar.size() << " matches" << endl;
for (int i = 0; i < (int)bar.size(); i++)
cout << bar[i]->getName() << '[' << bar[i]->getIndex() << ']' << endl;