]> git.mxchange.org Git - flightgear.git/commitdiff
small cleanup to vivian's patch
authorTim Moore <timoore@redhat.com>
Wed, 9 Dec 2009 08:23:20 +0000 (09:23 +0100)
committerTim Moore <timoore@redhat.com>
Wed, 9 Dec 2009 08:23:20 +0000 (09:23 +0100)
projects/VC7.1/FlightGear.vcproj
projects/VC90/FlightGear/FlightGear.vcproj
src/AIModel/AIEscort.cxx
src/AIModel/AIEscort.hxx
src/Instrumentation/wxradar.cxx
src/Instrumentation/wxradar.hxx

index 92b70f5c49e64807c354ebb4fc834ceef940bcc0..8a02a8ceee6a3983453682d7cf40f925aaa8b82c 100755 (executable)
                        <File
                                RelativePath="..\..\src\AIModel\AICarrier.hxx">
                        </File>
+                       <File
+                               RelativePath="..\..\src\AIModel\AIEscort.cxx">
+                       </File>
+                       <File
+                               RelativePath="..\..\src\AIModel\AIEscort.hxx">
+                       </File>
+
                        <File
                                RelativePath="..\..\src\AIModel\AIFlightPlan.cxx">
                        </File>
index 1be40009cfceacdd83accfc260eb1668ab324884..3b7d587ff7f5dfc31efefb3ab85c967c718cb146 100644 (file)
                                RelativePath="..\..\..\src\AIModel\AICarrier.hxx"
                                >
                        </File>
+                       <File
+                               RelativePath="..\..\..\src\AIModel\AIEscort.cxx"
+                               >
+                       </File>
+                       <File
+                               RelativePath="..\..\..\src\AIModel\AIEscort.hxx"
+                               >
+                       </File>
                        <File
                                RelativePath="..\..\..\src\AIModel\AIFlightPlan.cxx"
                                >
index 80ef3232579af69fa89973d241c883a3f21aab7a..760378e78e6155206f830bb425877e4bb385e5e1 100644 (file)
@@ -39,6 +39,8 @@
 
 #include "AIEscort.hxx"
 
+using std::string;
+
 FGAIEscort::FGAIEscort() :
 FGAIShip(otEscort),
 
index fec8498673aba6967c56f8d249e7a95cd61c5d80..ebc4424751ab6260148bb9066b7fbda856b4c5be 100644 (file)
@@ -26,9 +26,6 @@
 
 #include <simgear/compiler.h>
 
-using std::string;
-using std::list;
-
 #include "AIBase.hxx"
 
 #include "AIShip.hxx"
@@ -53,7 +50,7 @@ private:
     virtual void reinit() { init(); }
     virtual void update (double dt);
 
-    void setParentName(const string& p);
+    void setParentName(const std::string& p);
     void setParent();
     void setStnRange(double r);
     void setStnBrg(double y);
@@ -102,7 +99,7 @@ private:
 
     bool _MPControl, _patrol, _stn_deg_true;
 
-    string _parent;
+    std::string _parent;
 
 };
 
index c8259e28af1e7a6401d58b2d0a1f15864399e445..7681cb4fe5964e5134941c87dd5ddedbe31231d5 100644 (file)
@@ -73,16 +73,16 @@ static const char *DEFAULT_FONT = "typewriter.txf";
 
 
 wxRadarBg::wxRadarBg(SGPropertyNode *node) :
-_name(node->getStringValue("name", "radar")),
-_num(node->getIntValue("number", 0)),
-_interval(node->getDoubleValue("update-interval-sec", 1.0)),
-_time(0.0),
-_sim_init_done(false),
-_odg(0),
-_last_switchKnob("off"),
-_resultTexture(0),
-_wxEcho(0),
-_antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0))
+    _name(node->getStringValue("name", "radar")),
+    _num(node->getIntValue("number", 0)),
+    _interval(node->getDoubleValue("update-interval-sec", 1.0)),
+    _time(0.0),
+    _sim_init_done(false),
+    _odg(0),
+    _last_switchKnob("off"),
+    _resultTexture(0),
+    _wxEcho(0),
+    _antenna_ht(node->getDoubleValue("antenna-ht-ft", 0.0))
 {
     string branch;
     branch = "/instrumentation/" + _name;
index 1bac75e8b54e7ef752453953328f878c45016425..376410d1732e0d0bb638a17927eeb39212f3b46a 100644 (file)
 #include <simgear/environment/visual_enviro.hxx>
 
 #include <vector>
-#include <queue>
 #include <string>
 
 using std::vector;
-using std::queue;
 using std::string;
 
 class FGODGauge;