13
0

make Route::nth_send() and Route::nth_processor() be const

This commit is contained in:
Paul Davis 2016-01-27 11:37:54 -05:00
parent c79243c805
commit 708d80029b
2 changed files with 6 additions and 6 deletions

View File

@ -224,8 +224,8 @@ class LIBARDOUR_API Route : public SessionObject, public Automatable, public Rou
boost::shared_ptr<Processor> processor_by_id (PBD::ID) const;
boost::shared_ptr<Processor> nth_plugin (uint32_t n);
boost::shared_ptr<Processor> nth_send (uint32_t n);
boost::shared_ptr<Processor> nth_plugin (uint32_t n) const;
boost::shared_ptr<Processor> nth_send (uint32_t n) const;
bool has_io_processor_named (const std::string&);
ChanCount max_processor_streams () const { return processor_max_streams; }

View File

@ -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)) {