C++11 FTW

This commit is contained in:
Paul Davis 2023-01-10 22:39:54 -07:00
parent 9089694e36
commit 1a4ef77222
1 changed files with 2 additions and 2 deletions

View File

@ -1640,8 +1640,8 @@ MidiRegionView::add_ghost (TimeAxisView& tv)
ghost->set_height ();
ghost->set_duration (_region->length().samples() / samples_per_pixel);
for (Events::iterator i = _events.begin(); i != _events.end(); ++i) {
ghost->add_note(i->second);
for (auto const & i : _events) {
ghost->add_note (i.second);
}
ghosts.push_back (ghost);