]> git.mxchange.org Git - flightgear.git/commitdiff
Fix 'using std::' abuses
authorJames Turner <zakalawe@mac.com>
Mon, 9 Aug 2010 07:36:20 +0000 (08:36 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 9 Aug 2010 07:36:20 +0000 (08:36 +0100)
src/GUI/dialog.hxx
src/Input/FGDeviceConfigurationMap.hxx
src/Model/model_panel.cxx
src/Model/model_panel.hxx
src/Navaids/awynet.cxx
src/Navaids/fixlist.cxx

index e08dbe75ae2c414d3d5edc5b927dda34ea3f2f35..090ef2bbc36aa8e81018db646d9c76ffab5428be 100644 (file)
@@ -161,7 +161,7 @@ private:
     bool _needsRelayout;
 
     // Nasal module.
-    string _module;
+    std::string _module;
     SGPropertyNode_ptr _nasal_close;
 
     // PUI provides no way for userdata to be deleted automatically
@@ -173,7 +173,7 @@ private:
         PropertyObject (const char * name,
                         puObject * object,
                         SGPropertyNode_ptr node);
-        string name;
+        std::string name;
         puObject * object;
         SGPropertyNode_ptr node;
     };
index 27a3a8a143d6904a43d6140d15361d0808cc2e29..e89addc966b0ab6cf254850a490264577c91367e 100644 (file)
@@ -33,9 +33,8 @@
 #include <simgear/misc/sg_path.hxx>
 
 #include <map>
-using std::map;
 
-class FGDeviceConfigurationMap : public map<string,SGPropertyNode_ptr> {
+class FGDeviceConfigurationMap : public std::map<std::string,SGPropertyNode_ptr> {
 public:
   FGDeviceConfigurationMap ( const char * relative_path, SGPropertyNode_ptr base, const char * childname );
   virtual ~FGDeviceConfigurationMap();
index b18d1f164187ac894b6f88df1badf6c0e704ee8f..8a2ec9b2fea088004ed915c84ac66523a889640b 100644 (file)
@@ -28,7 +28,7 @@ using namespace simgear;
 ////////////////////////////////////////////////////////////////////////
 
 osg::Node *
-fgLoad3DModelPanel(const string &path, SGPropertyNode *prop_root)
+fgLoad3DModelPanel(const std::string &path, SGPropertyNode *prop_root)
 {
     osg::Node* node = SGModelLib::loadModel(path, prop_root);
     if (node)
index dcf41dd95334a676cf4c0542e165975fcd4e24f4..301f770c8c4536cb513cc197cfd02a30b1d2c429 100644 (file)
@@ -45,7 +45,7 @@ class FGLocation;
  * Subsystems should not normally invoke this function directly;
  * instead, they should use the SGModelLoader declared in loader.hxx.
  */
-osg::Node *fgLoad3DModelPanel( const string &path, SGPropertyNode *prop_root);
+osg::Node *fgLoad3DModelPanel( const std::string &path, SGPropertyNode *prop_root);
 
 
 #endif // __MODEL_HXX
index 5176134c06ca6d6d48d7ee518ac6ea088a28d5a9..4432c8d717e288e0b28dd1f920f8769e8cefd705 100755 (executable)
@@ -37,7 +37,7 @@
 #include "awynet.hxx"
 
 using std::sort;
-
+using std::string;
 using std::cerr;
 using std::endl;
 
index f9fc37a5d3a2436ed24d9c03d1f4a4bb9e146299..835a2b1b595320c9c1c0b9264e27da30997bf30d 100644 (file)
@@ -66,7 +66,7 @@ bool FGFixList::init(const SGPath& path ) {
     // read in each remaining line of the file
     while ( ! in.eof() ) {
       double lat, lon;
-      string ident;
+      std::string ident;
       in >> lat >> lon >> ident;
       if (lat > 95) break;