SMFSource: auto-ify a knarly container iteration

This commit is contained in:
Paul Davis
2025-11-14 16:36:28 -07:00
parent 33d6d5a330
commit 637e59a14f

View File

@@ -835,10 +835,9 @@ SMFSource::load_model_unlocked (bool force_reload)
eventlist.sort(compare_eventlist);
std::list< std::pair< Evoral::Event<Temporal::Beats>*, 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