message: Simplify the output name fixing
diff: @@ -127,19 +127,8 @@ void getOutputName(const string& V2SaveFileName)
  const int length = outputName.find_first_of(".");
  outputName = outputName.substr(0, length);
  - int dash = outputName.find_first_of('-');
  - while (dash != string::npos)
  - {
  - outputName.replace(dash, 1, "_");
  - dash = outputName.find_first_of('-');
  - }
  -
  - int space = outputName.find_first_of(' ');
  - while (space != string::npos)
  - {
  - outputName.replace(space, 1, "_");
  - space = outputName.find_first_of(' ');
  - }
  + std::replace(outputName.begin(), outputName.end(), '-', '_');
  + std::replace(outputName.begin(), outputName.end(), ' ', '_');
  Configuration::setOutputName(outputName);
  LOG(LogLevel::Info) << "Using output name " << outputName;
  