diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-21 18:09:34 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 15:28:11 -0700 |
| commit | e4fb837f4bf886e9688ea3c12e081a2d7b4e6a75 (patch) | |
| tree | 1b16603454de34fd05e2ac49a9ba4d8cdfcb3260 /Source/Core/DiscIO/RiivolutionPatcher.cpp | |
| parent | 6ca7e2856bd704a687e8408bf7ed92b23672c7fa (diff) | |
Modernize `std::find_if` with ranges
In BTEmu.cpp, `std::mem_fn` was not necessary for the predicate to compile.
Diffstat (limited to 'Source/Core/DiscIO/RiivolutionPatcher.cpp')
| -rw-r--r-- | Source/Core/DiscIO/RiivolutionPatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/DiscIO/RiivolutionPatcher.cpp b/Source/Core/DiscIO/RiivolutionPatcher.cpp index 8c54968c35..eff36077f9 100644 --- a/Source/Core/DiscIO/RiivolutionPatcher.cpp +++ b/Source/Core/DiscIO/RiivolutionPatcher.cpp @@ -366,7 +366,7 @@ static FSTBuilderNode* FindFileNodeInFST(std::string_view path, std::vector<FSTB const size_t path_separator = path.find('/'); const bool is_file = path_separator == std::string_view::npos; const std::string_view name = is_file ? path : path.substr(0, path_separator); - const auto it = std::find_if(fst->begin(), fst->end(), [&](const FSTBuilderNode& node) { + const auto it = std::ranges::find_if(*fst, [&](const FSTBuilderNode& node) { return Common::CaseInsensitiveEquals(node.m_filename, name); }); |
