diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-28 10:30:54 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:51 +1000 |
commit | 9b176e9385b815b19e606220d476d93904b5e035 (patch) | |
tree | a805a9c0f0b9d54f64fea77821189cb38cf8c39b /libs/ardour/solo_safe_control.cc | |
parent | 60e2fd3c8a03d467373f436bb0114bb7dc5c4a40 (diff) |
Use XMLNode::get/set_property API in ARDOUR::SoloSafeControl class
Diffstat (limited to 'libs/ardour/solo_safe_control.cc')
-rw-r--r-- | libs/ardour/solo_safe_control.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/libs/ardour/solo_safe_control.cc b/libs/ardour/solo_safe_control.cc index 971b97033d..2efb1254c7 100644 --- a/libs/ardour/solo_safe_control.cc +++ b/libs/ardour/solo_safe_control.cc @@ -71,12 +71,7 @@ SoloSafeControl::set_state (XMLNode const & node, int version) return -1; } - XMLProperty const * prop; - - if ((prop = node.property ("solo-safe")) != 0) { - _solo_safe = string_is_affirmative (prop->value()); - } - + node.get_property ("solo-safe", _solo_safe); return 0; } @@ -84,6 +79,6 @@ XMLNode& SoloSafeControl::get_state () { XMLNode& node (SlavableAutomationControl::get_state()); - node.add_property (X_("solo-safe"), _solo_safe ? X_("yes") : X_("no")); + node.set_property (X_("solo-safe"), _solo_safe); return node; } |