summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-09-29 10:31:49 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 00:53:48 -0700
commited5eb49d477354398964e3ced561b9fcdebad2ea (patch)
treec2f0b7dcf8f9747c466827130b0bb8895b6aff9a /Source/Core
parent7db13d23c9f8356c3d38e56a5587c377bd8e991c (diff)
Modernize `std::for_each` with ranges
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Debugger/BranchWatch.cpp3
1 files changed, 1 insertions, 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)