Modernize `std::for_each` with ranges
This commit is contained in:
parent
7db13d23c9
commit
ed5eb49d47
|
@ -307,8 +307,7 @@ void BranchWatch::UpdateHitsSnapshot()
|
||||||
|
|
||||||
void BranchWatch::ClearSelectionInspection()
|
void BranchWatch::ClearSelectionInspection()
|
||||||
{
|
{
|
||||||
std::for_each(m_selection.begin(), m_selection.end(),
|
std::ranges::for_each(m_selection, [](Selection::value_type& value) { value.inspection = {}; });
|
||||||
[](Selection::value_type& value) { value.inspection = {}; });
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void BranchWatch::SetSelectedInspected(std::size_t idx, SelectionInspection inspection)
|
void BranchWatch::SetSelectedInspected(std::size_t idx, SelectionInspection inspection)
|
||||||
|
|
Loading…
Reference in New Issue