- note (DCP_PROGRESS, String::compose ("Compared video frame %1 of %2", i, _intrinsic_duration));
- for (list<pair<NoteType, string> >::const_iterator i = notes.begin(); i != notes.end(); ++i) {
- note (i->first, i->second);
+ note (NoteType::PROGRESS, String::compose("Compared video frame %1 of %2", i, _intrinsic_duration));
+ for (auto const& i: notes) {
+ note (i.first, i.second);