From e4fb837f4bf886e9688ea3c12e081a2d7b4e6a75 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sat, 21 Sep 2024 18:09:34 -0700 Subject: Modernize `std::find_if` with ranges In BTEmu.cpp, `std::mem_fn` was not necessary for the predicate to compile. --- Source/Core/VideoCommon/Statistics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/Statistics.cpp') 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(); } -- cgit v1.2.3