]> git.mxchange.org Git - flightgear.git/commitdiff
Fixed some IRIX compile warnings and errors.
authorcurt <curt>
Tue, 1 Jun 1999 21:17:36 +0000 (21:17 +0000)
committercurt <curt>
Tue, 1 Jun 1999 21:17:36 +0000 (21:17 +0000)
Simulator/FDM/JSBsim/FGAircraft.cpp
Simulator/FDM/JSBsim/FGFCS.h
Simulator/FDM/JSBsim/FGFDMExec.h
Simulator/FDM/JSBsim/FGUtility.h

index a54e3271207b378cbd36c9c2a2d5ca0a13a7476a..2f58ea87b06623be15676ae4d98fe22d0a0ad107 100644 (file)
@@ -201,8 +201,8 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
   while (!aircraftfile.fail()) {
        holding_string.erase();
     aircraftfile >> holding_string;
-    if (holding_string.compare("//",0,2) != 0) {
-//    if (holding_string.compare(0, 2, "//") != 0) {
+    // if (holding_string.compare("//",0,2) != 0) {
+    if ( !(holding_string.substr(0, 2) == "//") ) {
 
       if (holding_string == "AIRCRAFT") {
        cout << "Reading in Aircraft parameters ..." << endl;
@@ -273,7 +273,7 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
         aircraftfile >> tag;
         streampos gpos = aircraftfile.tellg();
                                aircraftfile >> tag;
-                               if (tag != "}" ) {
+                               if ( !(tag == "}") ) {
                                        aircraftfile.seekg(gpos);
                Coeff[LiftCoeff][coeff_ctr[LiftCoeff]] = new FGCoefficient(FDMExec, aircraftfile);
              coeff_ctr[LiftCoeff]++;
@@ -287,7 +287,7 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
         aircraftfile >> tag;
         streampos gpos = aircraftfile.tellg();
                                aircraftfile >> tag;
-                               if (tag != "}" ) {
+                               if ( !(tag == "}") ) {
                                        aircraftfile.seekg(gpos);
                Coeff[DragCoeff][coeff_ctr[DragCoeff]] = new FGCoefficient(FDMExec, aircraftfile);
              coeff_ctr[DragCoeff]++;
@@ -301,7 +301,7 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
         aircraftfile >> tag;
         streampos gpos = aircraftfile.tellg();
                                aircraftfile >> tag;
-                               if (tag != "}" ) {
+                               if ( !(tag == "}") ) {
                                        aircraftfile.seekg(gpos);
                Coeff[SideCoeff][coeff_ctr[SideCoeff]] = new FGCoefficient(FDMExec, aircraftfile);
              coeff_ctr[SideCoeff]++;
@@ -315,7 +315,7 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
         aircraftfile >> tag;
         streampos gpos = aircraftfile.tellg();
                                aircraftfile >> tag;
-                               if (tag != "}" ) {
+                               if ( !(tag == "}") ) {
                                        aircraftfile.seekg(gpos);
                Coeff[RollCoeff][coeff_ctr[RollCoeff]] = new FGCoefficient(FDMExec, aircraftfile);
              coeff_ctr[RollCoeff]++;
@@ -329,7 +329,7 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
         aircraftfile >> tag;
         streampos gpos = aircraftfile.tellg();
                                aircraftfile >> tag;
-                               if (tag != "}" ) {
+                               if ( !(tag == "}") ) {
                                        aircraftfile.seekg(gpos);
                Coeff[PitchCoeff][coeff_ctr[PitchCoeff]] = new FGCoefficient(FDMExec, aircraftfile);
              coeff_ctr[PitchCoeff]++;
@@ -343,7 +343,7 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
         aircraftfile >> tag;
         streampos gpos = aircraftfile.tellg();
                                aircraftfile >> tag;
-                               if (tag != "}" ) {
+                               if ( !(tag == "}") ) {
                                        aircraftfile.seekg(gpos);
                Coeff[YawCoeff][coeff_ctr[YawCoeff]] = new FGCoefficient(FDMExec, aircraftfile);
              coeff_ctr[YawCoeff]++;
@@ -359,6 +359,7 @@ bool FGAircraft::LoadAircraftEx(string aircraft_path, string engine_path, string
     }
   }
        cout << "End of Configuration File Parsing." << endl;
+       return true;
 }
 
 
index 026dcc50bc32b5bdbb6a1eeb5e3d4baa801668d4..285b4d28ba27109299252027684cbf0fdf311f02 100644 (file)
@@ -76,4 +76,4 @@ private:
 };
 
 /******************************************************************************/
-#endif
\ No newline at end of file
+#endif
index 98acb5c43d12a756b01c023bb12e22df1f992298..8e6bdbfc0c3b1d8da912162259bd3c0e5888fcad 100644 (file)
@@ -59,8 +59,8 @@ class FGOutput;
 class FGFDMExec
 {
 public:
-  FGFDMExec::FGFDMExec(void);
-  FGFDMExec::~FGFDMExec(void);
+  FGFDMExec(void);
+  ~FGFDMExec(void);
 
   FGModel* FirstModel;
 
index 142e33d3f03bd405f7e59360367367407e98f3c5..18cb3eaf153c91a7d6a812ecf0a2e7797d05365e 100644 (file)
@@ -42,7 +42,7 @@ INCLUDES
 DEFINES
 *******************************************************************************/
 
-using namespace std;
+// FG_USING_STD(std);
 
 /*******************************************************************************
 CLASS DECLARATION