diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-29 11:08:08 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 00:53:48 -0700 |
| commit | 0a80243a926fdab20ef0a57411e80bead989128f (patch) | |
| tree | ff8af63b99fb1446bf3dc41c987af5c80ff7445d /Source/Core/Common/FileUtil.cpp | |
| parent | 72436a0d1f0c9c4c67f8763e0ec2f0941a975e02 (diff) | |
Modernize `std::replace` with ranges
Diffstat (limited to 'Source/Core/Common/FileUtil.cpp')
| -rw-r--r-- | Source/Core/Common/FileUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/FileUtil.cpp b/Source/Core/Common/FileUtil.cpp index 545bfaba44..ee2b330812 100644 --- a/Source/Core/Common/FileUtil.cpp +++ b/Source/Core/Common/FileUtil.cpp @@ -446,7 +446,7 @@ FSTEntry ScanDirectoryTree(std::string directory, bool recursive) // about with directory separators (for host paths - emulated paths may require it) and instead // use fs::path to interact with them. auto wpath = path.wstring(); - std::replace(wpath.begin(), wpath.end(), L'\\', L'/'); + std::ranges::replace(wpath, L'\\', L'/'); return WStringToUTF8(wpath); #else return PathToString(path); |
