X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fsend.cc;h=ec86686bef47d0e050ee31dfb5019b027475fe4f;hb=22b07e0233a29d9633ffa825a79503befaf2e16e;hp=87aadf4193ce339b8f5749829111b8f29785b59f;hpb=ad017365f7a73f8ba57f667cc1aa36478b48c50e;p=ardour.git diff --git a/libs/ardour/send.cc b/libs/ardour/send.cc index 87aadf4193..ec86686bef 100644 --- a/libs/ardour/send.cc +++ b/libs/ardour/send.cc @@ -48,7 +48,7 @@ string Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot, bool ignore_bitslot) { if (ignore_bitslot) { - /* this happens during initial construction of sends from XML, + /* this happens during initial construction of sends from XML, before they get ::set_state() called. lets not worry about it. */ @@ -65,10 +65,10 @@ Send::name_and_id_new_send (Session& s, Role r, uint32_t& bitslot, bool ignore_b return string_compose (_("send %1"), (bitslot = s.next_send_id ()) + 1); default: fatal << string_compose (_("programming error: send created using role %1"), enum_2_string (r)) << endmsg; - /*NOTREACHED*/ + abort(); /*NOTREACHED*/ return string(); } - + } Send::Send (Session& s, boost::shared_ptr p, boost::shared_ptr mm, Role r, bool ignore_bitslot) @@ -239,7 +239,7 @@ Send::set_state (const XMLNode& node, int version) /* don't try to reset bitslot if there is a node for it already: this can cause issues with the session's accounting of send ID's */ - + if ((prop = node.property ("bitslot")) == 0) { if (_role == Delivery::Aux) { _bitslot = _session.next_aux_send_id (); @@ -264,7 +264,7 @@ Send::set_state (const XMLNode& node, int version) } } } - + XMLNodeList nlist = node.children(); for (XMLNodeIterator i = nlist.begin(); i != nlist.end(); ++i) { if ((*i)->name() == X_("Processor")) { @@ -401,4 +401,4 @@ Send::value_as_string (boost::shared_ptr ac) const return _amp->value_as_string (ac); } - +