diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-27 11:37:54 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-27 11:37:54 -0500 |
commit | 708d80029b8fe54ce8f155205a5255730fc9cead (patch) | |
tree | d7c988356d891f0b5b37c2de55416f09b38818e3 /libs/ardour/route.cc | |
parent | c79243c8052883057b18569816917c5dea73ec31 (diff) |
make Route::nth_send() and Route::nth_processor() be const
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 8 |
1 files changed, 4 insertions, 4 deletions
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<Processor> -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<PluginInsert> (*i)) { @@ -4508,10 +4508,10 @@ Route::nth_plugin (uint32_t n) } boost::shared_ptr<Processor> -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<Send> (*i)) { |