mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-08-05 01:02:08 +00:00
Merge branch 'main' into dev/p2s-pr
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
#include "FileHelp.hpp"
|
||||
#include <boost/filesystem.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
#include <regex>
|
||||
namespace Slic3r {
|
||||
namespace Utils {
|
||||
|
||||
@@ -20,8 +19,7 @@ bool is_file_too_large(std::string file_path, bool &try_ok)
|
||||
}
|
||||
|
||||
void slash_to_back_slash(std::string &file_path) {
|
||||
std::regex regex("\\\\");
|
||||
file_path = std::regex_replace(file_path, regex, "/");
|
||||
std::replace(file_path.begin(), file_path.end(), '\\', '/');
|
||||
}
|
||||
|
||||
}} // namespace Slic3r::Utils
|
||||
|
||||
Reference in New Issue
Block a user