From 708d80029b8fe54ce8f155205a5255730fc9cead Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 27 Jan 2016 11:37:54 -0500 Subject: make Route::nth_send() and Route::nth_processor() be const --- libs/ardour/route.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/ardour/route.cc') diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index 8549bb34a6..ff765ad89d 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -4491,10 +4491,10 @@ Route::get_control (const Evoral::Parameter& param) } boost::shared_ptr -Route::nth_plugin (uint32_t n) +Route::nth_plugin (uint32_t n) const { Glib::Threads::RWLock::ReaderLock lm (_processor_lock); - ProcessorList::iterator i; + ProcessorList::const_iterator i; for (i = _processors.begin(); i != _processors.end(); ++i) { if (boost::dynamic_pointer_cast (*i)) { @@ -4508,10 +4508,10 @@ Route::nth_plugin (uint32_t n) } boost::shared_ptr -Route::nth_send (uint32_t n) +Route::nth_send (uint32_t n) const { Glib::Threads::RWLock::ReaderLock lm (_processor_lock); - ProcessorList::iterator i; + ProcessorList::const_iterator i; for (i = _processors.begin(); i != _processors.end(); ++i) { if (boost::dynamic_pointer_cast (*i)) { -- cgit v1.2.3