13
0

'gtk2_ardour' - Use 'const_iterator' where appropriate, instead of 'iterator'

This commit is contained in:
John Emmas 2013-10-03 09:52:39 +01:00
parent bc2b2f9e35
commit 5da78cea9a
2 changed files with 2 additions and 2 deletions

View File

@ -397,7 +397,7 @@ AudioTimeAxisView::build_automation_action_menu (bool for_selection)
(!pan_tracks.empty() && string_is_affirmative (pan_tracks.front()->gui_property ("visible")))); (!pan_tracks.empty() && string_is_affirmative (pan_tracks.front()->gui_property ("visible"))));
set<Evoral::Parameter> const & params = _route->pannable()->what_can_be_automated (); 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; _main_automation_menu_map[*p] = pan_automation_item;
} }
} }

View File

@ -3291,7 +3291,7 @@ MidiRegionView::selection_as_cut_buffer () const
{ {
Notes notes; Notes notes;
for (Selection::iterator i = _selection.begin(); i != _selection.end(); ++i) { for (Selection::const_iterator i = _selection.begin(); i != _selection.end(); ++i) {
NoteType* n = (*i)->note().get(); NoteType* n = (*i)->note().get();
notes.insert (boost::shared_ptr<NoteType> (new NoteType (*n))); notes.insert (boost::shared_ptr<NoteType> (new NoteType (*n)));
} }