From 39949e778d927bcd728cffa9b8f28822ace82bec Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 5 Nov 2024 13:26:58 -0700 Subject: [PATCH] autofication of another loop --- libs/ardour/midi_playlist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {