mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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