From 637e59a14f6cefe7d2e7eb67ad58b09074aa33f1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 14 Nov 2025 16:36:28 -0700 Subject: [PATCH] SMFSource: auto-ify a knarly container iteration --- libs/ardour/smf_source.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc index e173bfb8a7..b4fcf06ef1 100644 --- a/libs/ardour/smf_source.cc +++ b/libs/ardour/smf_source.cc @@ -835,10 +835,9 @@ SMFSource::load_model_unlocked (bool force_reload) eventlist.sort(compare_eventlist); - std::list< std::pair< Evoral::Event*, gint > >::iterator it; - for (it=eventlist.begin(); it!=eventlist.end(); ++it) { - _model->append (*it->first, it->second); - delete it->first; + for (auto & it : eventlist) { + _model->append (*it.first, it.second); + delete it.first; } /* Length ought to be based on data in the file (TrkEnd meta-event, not