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/ardour/route.h | 4 ++-- libs/ardour/route.cc | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libs/ardour/ardour/route.h b/libs/ardour/ardour/route.h index 829bf13298..864ae911e5 100644 --- a/libs/ardour/ardour/route.h +++ b/libs/ardour/ardour/route.h @@ -224,8 +224,8 @@ class LIBARDOUR_API Route : public SessionObject, public Automatable, public Rou boost::shared_ptr processor_by_id (PBD::ID) const; - boost::shared_ptr nth_plugin (uint32_t n); - boost::shared_ptr nth_send (uint32_t n); + boost::shared_ptr nth_plugin (uint32_t n) const; + boost::shared_ptr nth_send (uint32_t n) const; bool has_io_processor_named (const std::string&); ChanCount max_processor_streams () const { return processor_max_streams; } 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