'gtk2_ardour' - Use 'const_iterator' where appropriate, instead of 'iterator'
[ardour.git] / gtk2_ardour / midi_region_view.cc
index a4c9713df54b1926a326374766ef2e426709a6c8..c3d8a1ddd56d951403991733ef202374020c6692 100644 (file)
@@ -3291,7 +3291,7 @@ MidiRegionView::selection_as_cut_buffer () const
 {
        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();
                notes.insert (boost::shared_ptr<NoteType> (new NoteType (*n)));
        }