summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-21 23:46:43 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 00:53:48 -0700
commit249defa72b1da2a806a18cd93c7300c3aa1a844f (patch)
treefba56469d27f9c2a1f26899d66d0d63c3cbc19ec /Source/Core/InputCommon/ControllerEmu
parent4cc5e1972ae5643af001276758c4456ee7292f41 (diff)
Modernize `std::equal` with ranges
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu')
-rw-r--r--Source/Core/InputCommon/ControllerEmu/ControllerEmu.h3
1 files changed, 1 insertions, 2 deletions
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{});
}
}