]> git.mxchange.org Git - flightgear.git/commitdiff
Somewhere along the line in the recent changes some std::cout were
authorcurt <curt>
Mon, 18 Mar 2002 19:46:24 +0000 (19:46 +0000)
committercurt <curt>
Mon, 18 Mar 2002 19:46:24 +0000 (19:46 +0000)
inclueded in some of the files. Irix doesn't have cout in the std class,
so I changed it to "cout" and included SG_USING_NAMESPACE(std) at the
beginning of the files.
And some minor warning cleanups.

src/FDM/LaRCsimIC.hxx
src/Main/fg_io.cxx
src/Network/garmin.cxx
src/Network/nmea.cxx

index d5a38870bd27d76de9b54224bcf15754c26d645d..7f2bb0d85095aa8c3ac21e771db57174f3441267 100644 (file)
@@ -44,8 +44,8 @@ CLASS DECLARATION
 #define DEFAULT_AGL_ALT 3.758099
 #define DEFAULT_PITCH_ON_GROUND 0.0074002
 
-typedef enum lsspeedset { lssetvt, lssetvc, lssetve, lssetmach, lssetuvw, lssetned };
-typedef enum lsaltset { lssetasl, lssetagl };
+enum lsspeedset { lssetvt, lssetvc, lssetve, lssetmach, lssetuvw, lssetned };
+enum lsaltset { lssetasl, lssetagl };
 
 
 class LaRCsimIC {
index 9bfff40d211c398019f5a9d6ccb701840e4d0a75..d98cc0769eb1884742a85ced196c9aa71be88336 100644 (file)
@@ -57,6 +57,7 @@
 
 #include "globals.hxx"
 
+SG_USING_NAMESPACE(std);
 SG_USING_STD(string);
 
 
@@ -90,7 +91,7 @@ static FGProtocol *parse_port_config( const string& config )
        FGATC610x *atc610x = new FGATC610x;
        io = atc610x;
         short_circuit = true;
-       std::cout << "here ..." << endl;
+       cout << "here ..." << endl;
     } else if ( protocol == "atlas" ) {
        FGAtlas *atlas = new FGAtlas;
        io = atlas;
index 877baca1b5c01bfb75230133c5a53627e241c64b..590a92fdaae5f736e8f1ccd46363f23a13693d4d 100644 (file)
@@ -31,6 +31,7 @@
 
 #include "garmin.hxx"
 
+SG_USING_NAMESPACE(std);
 
 FGGarmin::FGGarmin() {
 }
@@ -145,7 +146,7 @@ bool FGGarmin::gen_message() {
     garmin_sentence += rmz_sum;
     garmin_sentence += "\n";
 
-    std::cout << garmin_sentence;
+    cout << garmin_sentence;
 
     length = garmin_sentence.length();
     strncpy( buf, garmin_sentence.c_str(), length );
index 8bb63ee418dc32b3db526a274d2c24eb329d49a7..577e694cc0f7a2ea86f66f8cb939d5e302c257f9 100644 (file)
@@ -31,6 +31,8 @@
 
 #include "nmea.hxx"
 
+SG_USING_NAMESPACE(std);
+
 
 FGNMEA::FGNMEA() {
 }
@@ -145,7 +147,7 @@ bool FGNMEA::gen_message() {
     nmea_sentence += gga_sum;
     nmea_sentence += "\n";
 
-    std::cout << nmea_sentence;
+    cout << nmea_sentence;
 
     length = nmea_sentence.length();
     strncpy( buf, nmea_sentence.c_str(), length );