Skip to content
Snippets Groups Projects
Commit edec2fd2 authored by David Fairbrother's avatar David Fairbrother
Browse files

Re #22780 Clang formatting

parent ec831222
No related branches found
No related tags found
No related merge requests found
...@@ -135,10 +135,10 @@ getRecoveryFolderCheckpoints(const std::string &recoveryFolderPath) { ...@@ -135,10 +135,10 @@ getRecoveryFolderCheckpoints(const std::string &recoveryFolderPath) {
} }
std::string removeInvalidFilenameChars(std::string s) { std::string removeInvalidFilenameChars(std::string s) {
// NTFS is most restrictive, so blacklist on this // NTFS is most restrictive, so blacklist on this
std::string blacklistChars{ ":*?<>|/\"\\" }; std::string blacklistChars{":*?<>|/\"\\"};
boost::remove_erase_if(s, boost::is_any_of(blacklistChars)); boost::remove_erase_if(s, boost::is_any_of(blacklistChars));
return s; return s;
} }
const std::string OUTPUT_PROJ_NAME = "recovery.mantid"; const std::string OUTPUT_PROJ_NAME = "recovery.mantid";
...@@ -446,8 +446,8 @@ void ProjectRecovery::saveWsHistories(const Poco::Path &historyDestFolder) { ...@@ -446,8 +446,8 @@ void ProjectRecovery::saveWsHistories(const Poco::Path &historyDestFolder) {
alg->setLogging(false); alg->setLogging(false);
for (const auto &ws : wsHandles) { for (const auto &ws : wsHandles) {
std::string filename = removeInvalidFilenameChars(ws->getName()); std::string filename = removeInvalidFilenameChars(ws->getName());
filename.append(".py"); filename.append(".py");
Poco::Path destFilename = historyDestFolder; Poco::Path destFilename = historyDestFolder;
destFilename.append(filename); destFilename.append(filename);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment