13
0

Enforce const correctness for a couple of iterators

This commit is contained in:
John Emmas 2014-01-30 16:29:37 +00:00
parent 33cadc0ef1
commit f901337a16
2 changed files with 2 additions and 2 deletions

View File

@ -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<Evoral::Parameter> const & params = _route->pannable()->what_can_be_automated ();
for (set<Evoral::Parameter>::iterator p = params.begin(); p != params.end(); ++p) {
for (set<Evoral::Parameter>::const_iterator p = params.begin(); p != params.end(); ++p) {
_main_automation_menu_map[*p] = pan_automation_item;
}
}

View File

@ -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<Evoral::Parameter> const & params = _route->pannable()->what_can_be_automated ();
for (set<Evoral::Parameter>::iterator p = params.begin(); p != params.end(); ++p) {
for (set<Evoral::Parameter>::const_iterator p = params.begin(); p != params.end(); ++p) {
_main_automation_menu_map[*p] = pan_automation_item;
}
}