diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-21 15:41:16 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2017-01-21 15:41:16 +0000 |
commit | 4a5abf61b06a95b52f1284206d43bfcb5585e4e7 (patch) | |
tree | 501b002ae2509b7ab23ffae491ab7e36b4d676c6 /libs/ardour | |
parent | 2b081ca6427cbfa22d48d124675826bae0883807 (diff) |
don't repeat-hard-code names for 3 automation types.
Fixes warning during session loading
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/track.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/ardour/track.cc b/libs/ardour/track.cc index 7dc9890e79..c84d9a1868 100644 --- a/libs/ardour/track.cc +++ b/libs/ardour/track.cc @@ -21,6 +21,7 @@ #include "ardour/debug.h" #include "ardour/delivery.h" #include "ardour/diskstream.h" +#include "ardour/event_type_map.h" #include "ardour/io_processor.h" #include "ardour/meter.h" #include "ardour/monitor_control.h" @@ -66,13 +67,13 @@ Track::init () boost::shared_ptr<Route> rp (shared_from_this()); boost::shared_ptr<Track> rt = boost::dynamic_pointer_cast<Track> (rp); - _record_enable_control.reset (new RecordEnableControl (_session, X_("recenable"), *this)); + _record_enable_control.reset (new RecordEnableControl (_session, EventTypeMap::instance().to_symbol (RecEnableAutomation), *this)); add_control (_record_enable_control); - _record_safe_control.reset (new RecordSafeControl (_session, X_("recsafe"), *this)); + _record_safe_control.reset (new RecordSafeControl (_session, EventTypeMap::instance().to_symbol (RecSafeAutomation), *this)); add_control (_record_safe_control); - _monitoring_control.reset (new MonitorControl (_session, X_("monitoring"), *this)); + _monitoring_control.reset (new MonitorControl (_session, EventTypeMap::instance().to_symbol (MonitoringAutomation), *this)); add_control (_monitoring_control); _session.config.ParameterChanged.connect_same_thread (*this, boost::bind (&Track::parameter_changed, this, _1)); |