From f941041805bdda290625f454480a089d93cafdf5 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 9 Feb 2022 17:25:59 -0700 Subject: [PATCH] triggerbox: use C++11 syntax for iteration --- libs/ardour/triggerbox.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/triggerbox.cc b/libs/ardour/triggerbox.cc index bff1f972b8..fc16030aeb 100644 --- a/libs/ardour/triggerbox.cc +++ b/libs/ardour/triggerbox.cc @@ -3221,8 +3221,8 @@ TriggerBox::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_samp std::vector to_run; - for (uint32_t n = 0; n < all_triggers.size(); ++n) { - all_triggers[n]->process_state_requests (bufs, nframes - 1); + for (auto & trig : all_triggers) { + trig->process_state_requests (bufs, nframes - 1); } /* cue handling is over at this point, reset _active_scene to reflect this */