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/VideoCommon | |
| 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/VideoCommon')
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index 378bffcd2a..311455f16d 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -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(); } |
