Modernize std::find_if with ranges

In BTEmu.cpp, `std::mem_fn` was not necessary for the predicate to compile.
This commit is contained in:
mitaclaw committed 2024-10-10 15:28:11 -07:00
1 parent 6ca7e2856b
commit e4fb837f4b
24 files changed
+60 -72

No files matched your search

+1 -1
View File
@@ -176,7 +176,7 @@ void Statistics::AddScissorRect()
}
else
{
add = std::find_if(scissors.begin(), scissors.end(), [&](auto& s) {
add = std::ranges::find_if(scissors, [&](auto& s) {
return s.Matches(scissor, show_scissors, show_viewports);
}) == scissors.end();
}