X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FFDM%2FUIUCModel%2Fuiuc_menu_fog.cpp;h=a8e7c395cea7e3369ec34ca8c3a5b133d2a4e40f;hb=f04d5f8758ef4b5524a9396a84351bf86db6763e;hp=578227e1e83f2d116f384096e353d0d64c0c3a2c;hpb=7289eaa8baafac56a3e32dedd5b77d3534d61c4a;p=flightgear.git diff --git a/src/FDM/UIUCModel/uiuc_menu_fog.cpp b/src/FDM/UIUCModel/uiuc_menu_fog.cpp index 578227e1e..a8e7c395c 100644 --- a/src/FDM/UIUCModel/uiuc_menu_fog.cpp +++ b/src/FDM/UIUCModel/uiuc_menu_fog.cpp @@ -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 ---------------------------------------------------------------------- @@ -63,31 +66,25 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, - USA or view http://www.gnu.org/copyleft/gpl.html. + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. **********************************************************************/ #include -#if defined( __MWERKS__ ) -// -dw- optimizer chokes (big-time) trying to optimize humongous -// loop/switch statements -#pragma optimization_level 0 -#endif #include #include -#include STL_IOSTREAM +#include #include "uiuc_menu_fog.h" -SG_USING_STD(cerr); -SG_USING_STD(cout); -SG_USING_STD(endl); +using std::cerr; +using std::cout; +using std::endl; #ifndef _MSC_VER -SG_USING_STD(exit); +using std::exit; #endif void parse_fog( const string& linetoken2, const string& linetoken3, @@ -98,14 +95,14 @@ void parse_fog( const string& linetoken2, const string& linetoken3, LIST command_line ) { double token_value; int token_value_convert1; - 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(fog_map[linetoken2]) {