From ed5eb49d477354398964e3ced561b9fcdebad2ea Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Sun, 29 Sep 2024 10:31:49 -0700 Subject: [PATCH] Modernize `std::for_each` with ranges --- Source/Core/Core/Debugger/BranchWatch.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/Core/Debugger/BranchWatch.cpp b/Source/Core/Core/Debugger/BranchWatch.cpp index 4ea0559cd9..7facfda5d0 100644 --- a/Source/Core/Core/Debugger/BranchWatch.cpp +++ b/Source/Core/Core/Debugger/BranchWatch.cpp @@ -307,8 +307,7 @@ void BranchWatch::UpdateHitsSnapshot() void BranchWatch::ClearSelectionInspection() { - std::for_each(m_selection.begin(), m_selection.end(), - [](Selection::value_type& value) { value.inspection = {}; }); + std::ranges::for_each(m_selection, [](Selection::value_type& value) { value.inspection = {}; }); } void BranchWatch::SetSelectedInspected(std::size_t idx, SelectionInspection inspection)