mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-01 17:02:20 -05:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user