Modernize `std::for_each` with ranges

This commit is contained in:
mitaclaw 2024-09-29 10:31:49 -07:00
parent 7db13d23c9
commit ed5eb49d47
1 changed files with 1 additions and 2 deletions

View File

@ -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)