summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-21 18:09:34 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 15:28:11 -0700
commite4fb837f4bf886e9688ea3c12e081a2d7b4e6a75 (patch)
tree1b16603454de34fd05e2ac49a9ba4d8cdfcb3260 /Source/Core/VideoCommon
parent6ca7e2856bd704a687e8408bf7ed92b23672c7fa (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.cpp2
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();
}