diff options
author | Robin Gareus <robin@gareus.org> | 2020-03-10 20:19:14 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-03-10 20:55:50 +0100 |
commit | ebd743d7951256d420bc4375b60e723f9a47c052 (patch) | |
tree | 074464cfa556e339fccd8512584739fd1165f3b1 /libs/ardour/plugin_insert.cc | |
parent | 2b17ded785be71f93c3f88a5ae1ca38759fb5d7e (diff) |
NO-OP: use set/clear_flag() API instead of set_flags()
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index bf4eb38fe2..0f78777d13 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -487,10 +487,10 @@ PluginInsert::create_automatable_parameters () boost::shared_ptr<AutomationList> list(new AutomationList(param, desc)); boost::shared_ptr<AutomationControl> c (new PluginControl(this, param, desc, list)); if (!automatable || (limit_automatables > 0 && what_can_be_automated ().size() > limit_automatables)) { - c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::NotAutomatable)); + c->set_flag (Controllable::NotAutomatable); } if (desc.inline_ctrl) { - c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::InlineControl)); + c->set_flag (Controllable::InlineControl); } add_control (c); plugin->set_automation_control (i, c); @@ -508,7 +508,7 @@ PluginInsert::create_automatable_parameters () } boost::shared_ptr<AutomationControl> c (new PluginPropertyControl(this, param, desc, list)); if (!Variant::type_is_numeric(desc.datatype)) { - c->set_flags (Controllable::Flag ((int)c->flags() | Controllable::NotAutomatable)); + c->set_flag (Controllable::NotAutomatable); } add_control (c); } |