]> git.mxchange.org Git - simgear.git/commitdiff
Fixed an MSVC compilation problem reported by Frederic Bouvier.
authordavid <david>
Fri, 28 Jun 2002 17:02:42 +0000 (17:02 +0000)
committerdavid <david>
Fri, 28 Jun 2002 17:02:42 +0000 (17:02 +0000)
simgear/misc/props.cxx

index cb721d34ce4787d8f73e7e67a44acabe7240dd49..c198858bd5dcad9d58fad316bfd5680912eeec44 100644 (file)
@@ -26,6 +26,8 @@ using std::sort;
 #include <simgear/debug/logstream.hxx>
 
 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<SGPropertyNode_ptr>::iterator it = _removedChildren.begin();
+      vector<SGPropertyNode_ptr>::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<SGPropertyNode_ptr>::iterator it = _children.begin();
+    vector<SGPropertyNode_ptr>::iterator it = _children.begin();
     it += pos;
     SGPropertyNode_ptr node = _children[pos];
     _children.erase(it);