]> git.mxchange.org Git - simgear.git/blobdiff - simgear/misc/props_test.cxx
- made getValue methods protected, so that they won't be invoked outside
[simgear.git] / simgear / misc / props_test.cxx
index 9f1b0d4f0c6509b4091e5ab901ff7cd02111c7c7..8d18162d4e12314f19952b918bfbf8d77453d05a 100644 (file)
@@ -3,11 +3,16 @@
 // Test harness.
 ////////////////////////////////////////////////////////////////////////
 
-#include <iostream>
+#include <simgear/compiler.h>
+
+#include STL_IOSTREAM
 #include "props.hxx"
 
-using std::cout;
-using std::endl;
+#if !defined(SG_HAVE_NATIVE_SGI_COMPILERS)
+SG_USING_STD(cout);
+SG_USING_STD(cerr);
+SG_USING_STD(endl);
+#endif
 
 
 \f
@@ -309,7 +314,7 @@ test_property_nodes ()
   cout << "Looking for all /hack[0]/bar children" << endl;
   vector<SGPropertyNode *> bar = child->getChildren("bar");
   cout << "There are " << bar.size() << " matches" << endl;
-  for (int i = 0; i < bar.size(); i++)
+  for (int i = 0; i < (int)bar.size(); i++)
     cout << bar[i]->getName() << '[' << bar[i]->getIndex() << ']' << endl;
   cout << endl;