X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fmisc%2Fprops.cxx;h=c198858bd5dcad9d58fad316bfd5680912eeec44;hb=3ff1789963e1831db9fd4b087e70401a26afadf7;hp=cb721d34ce4787d8f73e7e67a44acabe7240dd49;hpb=9737c0c4dd40e5db535644151e889ebec1249a71;p=simgear.git diff --git a/simgear/misc/props.cxx b/simgear/misc/props.cxx index cb721d34..c198858b 100644 --- a/simgear/misc/props.cxx +++ b/simgear/misc/props.cxx @@ -26,6 +26,8 @@ using std::sort; #include SG_USING_STD(sort); +SG_USING_STD(find); +SG_USING_STD(vector); #endif @@ -844,7 +846,7 @@ SGPropertyNode::getChild (const char * name, int index, bool create) SGPropertyNode_ptr node; pos = find_child(name, index, _removedChildren); if (pos >= 0) { - std::vector::iterator it = _removedChildren.begin(); + vector::iterator it = _removedChildren.begin(); it += pos; node = _removedChildren[pos]; _removedChildren.erase(it); @@ -902,7 +904,7 @@ SGPropertyNode::removeChild (const char * name, int index, bool keep) SGPropertyNode_ptr ret; int pos = find_child(name, index, _children); if (pos >= 0) { - std::vector::iterator it = _children.begin(); + vector::iterator it = _children.begin(); it += pos; SGPropertyNode_ptr node = _children[pos]; _children.erase(it);