/[svn]/gigedit/trunk/src/gigedit/mainwindow.cpp
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3179 by schoenebeck, Sat May 13 18:56:36 2017 UTC revision 3180 by schoenebeck, Sun May 14 13:17:03 2017 UTC
# Line 1212  void Saver::thread_function() Line 1212  void Saver::thread_function()
1212                  }                  }
1213                  #else // POSIX ...                  #else // POSIX ...
1214                  if (unlink(filename.c_str())) {                  if (unlink(filename.c_str())) {
1215                      throw RIFF::Exception("Could not replace original file with temporary file (unable to remove original file): " + String(strerror(errno)));                      throw RIFF::Exception("Could not replace original file with temporary file (unable to remove original file): " + gig::String(strerror(errno)));
1216                  }                  }
1217                  #endif                  #endif
1218                  if (rename(tmpname.c_str(), filename.c_str())) {                  if (rename(tmpname.c_str(), filename.c_str())) {
1219                      #if defined(WIN32)                      #if defined(WIN32)
1220                      throw RIFF::Exception("Could not replace original file with temporary file (unable to rename temp file).");                      throw RIFF::Exception("Could not replace original file with temporary file (unable to rename temp file).");
1221                      #else                      #else
1222                      throw RIFF::Exception("Could not replace original file with temporary file (unable to rename temp file): " + String(strerror(errno)));                      throw RIFF::Exception("Could not replace original file with temporary file (unable to rename temp file): " + gig::String(strerror(errno)));
1223                      #endif                      #endif
1224                  }                  }
1225              }              }

Legend:
Removed from v.3179  
changed lines
  Added in v.3180

  ViewVC Help
Powered by ViewVC