From 249defa72b1da2a806a18cd93c7300c3aa1a844f Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sat, 21 Sep 2024 23:46:43 -0700 Subject: Modernize `std::equal` with ranges --- Source/Core/InputCommon/ControllerEmu/ControllerEmu.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Core/InputCommon') diff --git a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h index b77b2ce3ed..88c14cfdb1 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h +++ b/Source/Core/InputCommon/ControllerEmu/ControllerEmu.h @@ -53,8 +53,7 @@ struct TwoPointCalibration } else { - return std::equal(std::begin(max.data), std::end(max.data), std::begin(zero.data), - std::not_equal_to<>()); + return std::ranges::equal(max.data, zero.data, std::ranges::not_equal_to{}); } } -- cgit v1.2.3