Taking a const ref of history items vector in HistoryViewModel::SaveHistory and iterating over those items using a range for loop.
Taking a const ref of history items vector in HistoryViewModel::SaveHistory and iterating over those items using a range for loop.