diff --git a/MantidPlot/src/ProjectRecovery.cpp b/MantidPlot/src/ProjectRecovery.cpp index 67df55190c5d54d6099d8867e2c6de37805c0fa0..98c664ea88e61abbaae8c4a03034c9f22a10d25c 100644 --- a/MantidPlot/src/ProjectRecovery.cpp +++ b/MantidPlot/src/ProjectRecovery.cpp @@ -135,10 +135,10 @@ getRecoveryFolderCheckpoints(const std::string &recoveryFolderPath) { } std::string removeInvalidFilenameChars(std::string s) { - // NTFS is most restrictive, so blacklist on this - std::string blacklistChars{ ":*?<>|/\"\\" }; - boost::remove_erase_if(s, boost::is_any_of(blacklistChars)); - return s; + // NTFS is most restrictive, so blacklist on this + std::string blacklistChars{":*?<>|/\"\\"}; + boost::remove_erase_if(s, boost::is_any_of(blacklistChars)); + return s; } const std::string OUTPUT_PROJ_NAME = "recovery.mantid"; @@ -446,8 +446,8 @@ void ProjectRecovery::saveWsHistories(const Poco::Path &historyDestFolder) { alg->setLogging(false); for (const auto &ws : wsHandles) { - std::string filename = removeInvalidFilenameChars(ws->getName()); - filename.append(".py"); + std::string filename = removeInvalidFilenameChars(ws->getName()); + filename.append(".py"); Poco::Path destFilename = historyDestFolder; destFilename.append(filename);