]> git.mxchange.org Git - flightgear.git/commitdiff
Remove unnecessary includes/using
authorJames Turner <zakalawe@mac.com>
Mon, 29 Jul 2013 21:59:45 +0000 (22:59 +0100)
committerJames Turner <zakalawe@mac.com>
Mon, 29 Jul 2013 21:59:45 +0000 (22:59 +0100)
flight.hxx (FGInterface) was pulling in list, string and vector, and
'using' them, despite no actual need.

src/FDM/ExternalNet/ExternalNet.hxx
src/FDM/ExternalPipe/ExternalPipe.hxx
src/FDM/flight.cxx
src/FDM/flight.hxx
src/Main/fg_commands.cxx

index a3f80891a67642364860ee0446f66b955628de8a..899650b414771f597bf42728e8fa679c18cffe32 100644 (file)
@@ -38,7 +38,7 @@ private:
     int data_in_port;
     int data_out_port;
     int cmd_port;
-    string fdm_host;
+    std::string fdm_host;
 
     simgear::Socket data_client;
     simgear::Socket data_server;
@@ -51,7 +51,7 @@ private:
 public:
 
     // Constructor
-    FGExternalNet( double dt, string host, int dop, int dip, int cp );
+    FGExternalNet( double dt, std::string host, int dop, int dip, int cp );
 
     // Destructor
     ~FGExternalNet();
index 866967c12e3531aed284f0d47323be7bb5ca6873..1881bffbad2ebb529c09a655866371765f282c4e 100644 (file)
@@ -38,11 +38,11 @@ private:
 
     bool valid;
 
-    string fifo_name_1;
-    string fifo_name_2;
+    std::string fifo_name_1;
+    std::string fifo_name_2;
     FILE *pd1;
     FILE *pd2;
-    string _protocol;
+    std::string _protocol;
 
     FGNetCtrls ctrls;
     FGNetFDM fdm;
@@ -51,8 +51,8 @@ private:
     double last_weight;
     double last_cg_offset;
 
-    vector <string> property_names;
-    vector <SGPropertyNode_ptr> nodes;
+    std::vector <std::string> property_names;
+    std::vector <SGPropertyNode_ptr> nodes;
 
     // Protocol specific init routines
     void init_binary();
@@ -66,7 +66,7 @@ private:
 public:
 
     // Constructor
-    FGExternalPipe( double dt, string fifo_name, string protocol );
+    FGExternalPipe( double dt, std::string fifo_name, std::string protocol );
 
     // Destructor
     ~FGExternalPipe();
index ccef14e0b9c64d59b617c48e9754a4ab875be62b..8a06e361f77288a29f6ff075b395fbb20067be64 100644 (file)
@@ -200,7 +200,7 @@ FGInterface::common_init ()
     if ( !fgHasNode("/sim/presets/speed-set") ) {
         set_V_calibrated_kts(0.0);
     } else {
-        const string speedset = fgGetString("/sim/presets/speed-set");
+        const std::string speedset = fgGetString("/sim/presets/speed-set");
         if ( speedset == "knots" || speedset == "KNOTS" ) {
             set_V_calibrated_kts( fgGetDouble("/sim/presets/airspeed-kt") );
         } else if ( speedset == "mach" || speedset == "MACH" ) {
index 0c3a81ce261d7b5c9d787aa25db3d890ea10cde3..c6f3024d0fef6de584617f299fdae917a71a7786 100644 (file)
 
 #include <math.h>
 
-#include <list>
-#include <vector>
-#include <string>
-
 #include <simgear/compiler.h>
 #include <simgear/constants.h>
 #include <simgear/structure/subsystem_mgr.hxx>
 #include <simgear/props/tiedpropertylist.hxx>
 #include <FDM/groundcache.hxx>
 
-using std::list;
-using std::vector;
-using std::string;
-
 namespace simgear {
 class BVHMaterial;
 }
index 5a22bcdebf19e6ea5992de372d38eaf63f13e381..2a93954c6b4546c4c6f128fc935ee902c55be954 100644 (file)
@@ -843,7 +843,7 @@ static bool
 do_property_cycle (const SGPropertyNode * arg)
 {
     SGPropertyNode * prop = get_prop(arg);
-    vector<SGPropertyNode_ptr> values = arg->getChildren("value");
+    std::vector<SGPropertyNode_ptr> values = arg->getChildren("value");
     
     bool wrap = arg->getBoolValue("wrap", true);
     // compatible with knob/pick animations