summaryrefslogtreecommitdiff
path: root/Source/Core/Common/FileSearch.cpp
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-29 11:08:08 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 00:53:48 -0700
commit0a80243a926fdab20ef0a57411e80bead989128f (patch)
treeff8af63b99fb1446bf3dc41c987af5c80ff7445d /Source/Core/Common/FileSearch.cpp
parent72436a0d1f0c9c4c67f8763e0ec2f0941a975e02 (diff)
Modernize `std::replace` with ranges
Diffstat (limited to 'Source/Core/Common/FileSearch.cpp')
-rw-r--r--Source/Core/Common/FileSearch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/Common/FileSearch.cpp b/Source/Core/Common/FileSearch.cpp
index d022414efc..31b5e3cd37 100644
--- a/Source/Core/Common/FileSearch.cpp
+++ b/Source/Core/Common/FileSearch.cpp
@@ -107,7 +107,7 @@ std::vector<std::string> DoFileSearch(const std::vector<std::string>& directorie
if constexpr (os_separator != DIR_SEP_CHR)
{
for (auto& path : result)
- std::replace(path.begin(), path.end(), '\\', DIR_SEP_CHR);
+ std::ranges::replace(path, '\\', DIR_SEP_CHR);
}
return result;