]> git.mxchange.org Git - flightgear.git/commitdiff
Removed ios::binary on file open.
authorcurt <curt>
Wed, 14 Mar 2001 23:35:46 +0000 (23:35 +0000)
committercurt <curt>
Wed, 14 Mar 2001 23:35:46 +0000 (23:35 +0000)
src/Cockpit/hud.cxx
src/Cockpit/panel_io.cxx
src/GUI/gui.cxx
src/Main/keyboard.cxx

index 4888030f8edff0e12fef3e6f3e7234a38f2a3c4a..fa6f25f4d37025415ce34725cafb159cbb7da936 100644 (file)
@@ -717,7 +717,7 @@ int fgHUDInit( fgAIRCRAFT * /* current_aircraft */ )
        FGPath path(globals->get_fg_root());
        path.append(hud_path);
        
-       ifstream input(path.c_str(), ios::binary);
+       ifstream input(path.c_str());
        if (!input.good()) 
                {
                        FG_LOG(FG_INPUT, FG_ALERT,
@@ -747,7 +747,7 @@ int fgHUDInit2( fgAIRCRAFT * /* current_aircraft */ )
        path.append("Huds/Minimal/default.xml");
 
 
-       ifstream input(path.c_str(), ios::binary);
+       ifstream input(path.c_str());
        if (!input.good()) {
                FG_LOG(FG_INPUT, FG_ALERT,
                        "Cannot read Hud configuration from " << path.str());
index 6c148fe485a6263e9a62d0df6c21988840da0537..0e395a31c08a2cf29a49739f81dd16eaf15ad733 100644 (file)
@@ -817,7 +817,7 @@ fgReadPanel (const string &relative_path)
   FGPanel * panel = 0;
   FGPath path(globals->get_fg_root());
   path.append(relative_path);
-  ifstream input(path.c_str(), ios::binary);
+  ifstream input(path.c_str());
   if (!input.good()) {
     FG_LOG(FG_INPUT, FG_ALERT,
           "Cannot read panel configuration from " << path.str());
index 75854866db277d7df69d84acc57a8a5bc8385f54..c1b86e36eeeb4b55d18232ca312ee70338578b7c 100644 (file)
@@ -210,7 +210,7 @@ void SaveDialogOk(puObject*) {
     char *s;
     SaveDialogInput->getValue(&s);
 
-    ofstream output(s, ios::binary);
+    ofstream output(s);
     cout << saveFile << endl;
     if (output.good() && fgSaveFlight(output)) {
        output.close();
@@ -270,7 +270,7 @@ void LoadDialogOk(puObject *) {
     char *l;
     LoadDialogInput->getValue(&l);
 
-    ifstream input(l, ios::binary);
+    ifstream input(l);
     if (input.good() && fgLoadFlight(input)) {
        input.close();
        mkDialog("Loaded flight");
index 3380755b18eef88c9510a3a533bcaacde2cf3f51..b7a994c85c35922a7a74d813c2cf7426aee0ee2a 100644 (file)
@@ -426,7 +426,7 @@ void GLUTspecialkey(int k, int x, int y) {
        FG_LOG( FG_INPUT, FG_DEBUG, " SHIFTED" );
        switch (k) {
        case GLUT_KEY_F1: {
-           ifstream input("fgfs.sav", ios::binary);
+           ifstream input("fgfs.sav");
            if (input.good() && fgLoadFlight(input)) {
                input.close();
                FG_LOG(FG_INPUT, FG_INFO, "Restored flight from fgfs.sav");
@@ -438,7 +438,7 @@ void GLUTspecialkey(int k, int x, int y) {
        case GLUT_KEY_F2: {
            FG_LOG(FG_INPUT, FG_INFO, "Saving flight");
            cerr << "Opening output stream" << endl;
-           ofstream output("fgfs.sav", ios::binary);
+           ofstream output("fgfs.sav");
            cerr << "output stream opened" << endl;
            if (output.good() && fgSaveFlight(output)) {
                output.close();