]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/UIUCModel/uiuc_menu_geometry.cpp
Harald JOHNSEN:
[flightgear.git] / src / FDM / UIUCModel / uiuc_menu_geometry.cpp
index 70d4c89f5b42eb9885ec3719ce49898cf565a503..67461d177eb6ab369f7ebe4bd448beb0347d7c0a 100644 (file)
@@ -18,6 +18,9 @@
 ----------------------------------------------------------------------
 
  HISTORY:      04/04/2003   initial release
+               06/30/2003   (RD) replaced istrstream with istringstream
+                            to get rid of the annoying warning about
+                            using the strstream header
 
 ----------------------------------------------------------------------
 
@@ -97,14 +100,14 @@ void parse_geometry( const string& linetoken2, const string& linetoken3,
                     const string& linetoken10, 
                     const string& aircraft_directory, LIST command_line ) {
     double token_value;
-    istrstream token3(linetoken3.c_str());
-    istrstream token4(linetoken4.c_str());
-    istrstream token5(linetoken5.c_str());
-    istrstream token6(linetoken6.c_str());
-    istrstream token7(linetoken7.c_str());
-    istrstream token8(linetoken8.c_str());
-    istrstream token9(linetoken9.c_str());
-    istrstream token10(linetoken10.c_str());
+    istringstream token3(linetoken3.c_str());
+    istringstream token4(linetoken4.c_str());
+    istringstream token5(linetoken5.c_str());
+    istringstream token6(linetoken6.c_str());
+    istringstream token7(linetoken7.c_str());
+    istringstream token8(linetoken8.c_str());
+    istringstream token9(linetoken9.c_str());
+    istringstream token10(linetoken10.c_str());
 
     switch(geometry_map[linetoken2])
       {
@@ -170,7 +173,7 @@ void parse_geometry( const string& linetoken2, const string& linetoken3,
          else
            uiuc_warnings_errors(1, *command_line);
          
-         ch = token_value;
+         chord_h = token_value;
          geometryParts -> storeCommands (*command_line);
          break;
        }