From 0a80243a926fdab20ef0a57411e80bead989128f Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sun, 29 Sep 2024 11:08:08 -0700 Subject: Modernize `std::replace` with ranges --- Source/Core/Common/FileSearch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/FileSearch.cpp') 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 DoFileSearch(const std::vector& 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; -- cgit v1.2.3