fix ambiguity in VCA constructors

This commit is contained in:
Paul Davis 2016-03-04 14:56:27 -05:00
parent dc9f579a8b
commit dd31ef2d1b
3 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ class Route;
class LIBARDOUR_API VCA : public SessionHandleRef, public PBD::StatefulDestructible, public Automatable {
public:
VCA (Session& session, const std::string& name, uint32_t num);
VCA (Session& session, uint32_t num, const std::string& name);
VCA (Session& session, XMLNode const&, int version);
~VCA();

View File

@ -47,7 +47,7 @@ VCA::next_vca_number ()
return g_atomic_int_add (&next_number, 1) + 1;
}
VCA::VCA (Session& s, const string& name, uint32_t num)
VCA::VCA (Session& s, uint32_t num, const string& name)
: SessionHandleRef (s)
, Automatable (s)
, _number (num)

View File

@ -73,7 +73,7 @@ VCAManager::create_vca (uint32_t howmany, std::string const & name_template)
replace_all (name, "%n", sn);
}
boost::shared_ptr<VCA> vca = boost::shared_ptr<VCA> (new VCA (_session, name, num));
boost::shared_ptr<VCA> vca = boost::shared_ptr<VCA> (new VCA (_session, num, name));
_vcas.push_back (vca);
vcal.push_back (vca);