From c98ec4456dfce09f1a9c9bd866bb879c0f0b8b73 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 29 May 2024 22:36:03 -0600 Subject: [PATCH] auto-fy another PortGroup::gather loop --- gtk2_ardour/port_group.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc index c9c439f872..083923fed6 100644 --- a/gtk2_ardour/port_group.cc +++ b/gtk2_ardour/port_group.cc @@ -475,11 +475,11 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp std::shared_ptr sync (new Bundle (_("Sync"), inputs)); AudioEngine* ae = AudioEngine::instance(); - TransportMasterManager::TransportMasters const & tm (TransportMasterManager::instance().transport_masters()); + TransportMasterManager::TransportMasters const & tms (TransportMasterManager::instance().transport_masters()); - for (TransportMasterManager::TransportMasters::const_iterator i = tm.begin(); i != tm.end(); ++i) { + for (auto const & tm : tms) { - std::shared_ptr port = (*i)->port (); + std::shared_ptr port = tm->port (); if (!port) { continue; @@ -489,7 +489,7 @@ PortGroupList::gather (ARDOUR::Session* session, ARDOUR::DataType type, bool inp continue; } - sync->add_channel ((*i)->name(), DataType::AUDIO, ae->make_port_name_non_relative (port->name())); + sync->add_channel (tm->name(), DataType::AUDIO, ae->make_port_name_non_relative (port->name())); } program->add_bundle (sync);