From f901337a1668716aad8b0de6325b5bb2ee8847e9 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 30 Jan 2014 16:29:37 +0000 Subject: [PATCH] Enforce const correctness for a couple of iterators --- gtk2_ardour/audio_time_axis.cc | 2 +- gtk2_ardour/midi_time_axis.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/audio_time_axis.cc b/gtk2_ardour/audio_time_axis.cc index bbab4b37bb..e59c43fc84 100644 --- a/gtk2_ardour/audio_time_axis.cc +++ b/gtk2_ardour/audio_time_axis.cc @@ -410,7 +410,7 @@ AudioTimeAxisView::build_automation_action_menu (bool for_selection) (!pan_tracks.empty() && string_is_affirmative (pan_tracks.front()->gui_property ("visible")))); set const & params = _route->pannable()->what_can_be_automated (); - for (set::iterator p = params.begin(); p != params.end(); ++p) { + for (set::const_iterator p = params.begin(); p != params.end(); ++p) { _main_automation_menu_map[*p] = pan_automation_item; } } diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index 17a77c80a1..59c30c0c02 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -609,7 +609,7 @@ MidiTimeAxisView::build_automation_action_menu (bool for_selection) (!pan_tracks.empty() && string_is_affirmative (pan_tracks.front()->gui_property ("visible")))); set const & params = _route->pannable()->what_can_be_automated (); - for (set::iterator p = params.begin(); p != params.end(); ++p) { + for (set::const_iterator p = params.begin(); p != params.end(); ++p) { _main_automation_menu_map[*p] = pan_automation_item; } }