diff --git a/libs/ardour/midi_playlist.cc b/libs/ardour/midi_playlist.cc index 1c06bcc406..45913ebb17 100644 --- a/libs/ardour/midi_playlist.cc +++ b/libs/ardour/midi_playlist.cc @@ -363,8 +363,8 @@ MidiPlaylist::render (MidiChannelFilter* filter) EventsSortByTimeAndType cmp; /* iterate, top-most region first */ - for (auto i = regs.rbegin(); i != regs.rend(); ++i) { - std::shared_ptr mr = *i; + for (auto & mr : regs) { + DEBUG_TRACE (DEBUG::MidiPlaylistIO, string_compose ("maybe render from %1\n", mr->name())); if (top) {