mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00: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:
parent
6ca7e2856b
commit
e4fb837f4b
24 changed files with 60 additions and 72 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue