diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-21 23:46:43 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-10 00:53:48 -0700 |
| commit | 249defa72b1da2a806a18cd93c7300c3aa1a844f (patch) | |
| tree | fba56469d27f9c2a1f26899d66d0d63c3cbc19ec /Source/Core | |
| parent | 4cc5e1972ae5643af001276758c4456ee7292f41 (diff) | |
Modernize `std::equal` with ranges
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp | 3 | ||||
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControllerEmu.h | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp index e33ba4c214..4651a27a80 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp @@ -191,8 +191,7 @@ void FIFOAnalyzer::UpdateTree() // We shouldn't end on a Command (it should end with an EFB copy) ASSERT(part_start == frame_info.parts.size()); // The counts we computed should match the frame's counts - ASSERT(std::equal(frame_info.part_type_counts.begin(), frame_info.part_type_counts.end(), - part_counts.begin())); + ASSERT(std::ranges::equal(frame_info.part_type_counts, part_counts)); } } 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{}); } } |
