summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-04-27 04:57:28 +0200
committerRobin Gareus <robin@gareus.org>2015-04-27 17:19:57 +0200
commit9687c756a6010d24f88f8faaa77466bae8922b9a (patch)
tree920b83c35df3f88541134f4373d1ed95bd5889f5 /libs/ardour/route.cc
parent36ee1681fe87d3f1d39fa52727e1dee5e2dd1322 (diff)
const iterators
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index 5df1be71cb..3c03d7c1a4 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -570,7 +570,7 @@ Route::process_output_buffers (BufferSet& bufs,
framecnt_t latency = 0;
- for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
+ for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) {
if (meter_already_run && boost::dynamic_pointer_cast<PeakMeter> (*i)) {
/* don't ::run() the meter, otherwise it will have its previous peak corrupted */
@@ -4137,7 +4137,7 @@ Route::set_processor_positions ()
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
bool had_amp = false;
- for (ProcessorList::iterator i = _processors.begin(); i != _processors.end(); ++i) {
+ for (ProcessorList::const_iterator i = _processors.begin(); i != _processors.end(); ++i) {
(*i)->set_pre_fader (!had_amp);
if (boost::dynamic_pointer_cast<Amp> (*i)) {
had_amp = true;