make Route::nth_send() and Route::nth_processor() be const
This commit is contained in:
parent
c79243c805
commit
708d80029b
@ -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> processor_by_id (PBD::ID) const;
|
||||||
|
|
||||||
boost::shared_ptr<Processor> nth_plugin (uint32_t n);
|
boost::shared_ptr<Processor> nth_plugin (uint32_t n) const;
|
||||||
boost::shared_ptr<Processor> nth_send (uint32_t n);
|
boost::shared_ptr<Processor> nth_send (uint32_t n) const;
|
||||||
|
|
||||||
bool has_io_processor_named (const std::string&);
|
bool has_io_processor_named (const std::string&);
|
||||||
ChanCount max_processor_streams () const { return processor_max_streams; }
|
ChanCount max_processor_streams () const { return processor_max_streams; }
|
||||||
|
@ -4491,10 +4491,10 @@ Route::get_control (const Evoral::Parameter& param)
|
|||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<Processor>
|
boost::shared_ptr<Processor>
|
||||||
Route::nth_plugin (uint32_t n)
|
Route::nth_plugin (uint32_t n) const
|
||||||
{
|
{
|
||||||
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
|
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
|
||||||
ProcessorList::iterator i;
|
ProcessorList::const_iterator i;
|
||||||
|
|
||||||
for (i = _processors.begin(); i != _processors.end(); ++i) {
|
for (i = _processors.begin(); i != _processors.end(); ++i) {
|
||||||
if (boost::dynamic_pointer_cast<PluginInsert> (*i)) {
|
if (boost::dynamic_pointer_cast<PluginInsert> (*i)) {
|
||||||
@ -4508,10 +4508,10 @@ Route::nth_plugin (uint32_t n)
|
|||||||
}
|
}
|
||||||
|
|
||||||
boost::shared_ptr<Processor>
|
boost::shared_ptr<Processor>
|
||||||
Route::nth_send (uint32_t n)
|
Route::nth_send (uint32_t n) const
|
||||||
{
|
{
|
||||||
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
|
Glib::Threads::RWLock::ReaderLock lm (_processor_lock);
|
||||||
ProcessorList::iterator i;
|
ProcessorList::const_iterator i;
|
||||||
|
|
||||||
for (i = _processors.begin(); i != _processors.end(); ++i) {
|
for (i = _processors.begin(); i != _processors.end(); ++i) {
|
||||||
if (boost::dynamic_pointer_cast<Send> (*i)) {
|
if (boost::dynamic_pointer_cast<Send> (*i)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user