From b5f5aeafe7d0f011c908e44f38e6912fd55fb03a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 16 Jun 2025 22:59:17 -0600 Subject: [PATCH] use C++11 style iterator --- gtk2_ardour/midi_view.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gtk2_ardour/midi_view.cc b/gtk2_ardour/midi_view.cc index 60d47c91aa..626d3f5394 100644 --- a/gtk2_ardour/midi_view.cc +++ b/gtk2_ardour/midi_view.cc @@ -1175,9 +1175,8 @@ MidiView::model_changed() maybe_set_note_range (low_note, hi_note); } - for (MidiModel::Notes::iterator n = notes.begin(); n != notes.end(); ++n) { + for (auto & note : notes) { - std::shared_ptr note (*n); bool visible; if (_extensible || note_in_region_range (note, visible)) {