From 60e2fd3c8a03d467373f436bb0114bb7dc5c4a40 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 28 Aug 2016 10:28:44 +1000 Subject: [PATCH] Use XMLNode::get/set_property API in ARDOUR::SoloIsolateControl class --- libs/ardour/solo_isolate_control.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/libs/ardour/solo_isolate_control.cc b/libs/ardour/solo_isolate_control.cc index c2d7f13d2c..90132a951c 100644 --- a/libs/ardour/solo_isolate_control.cc +++ b/libs/ardour/solo_isolate_control.cc @@ -159,12 +159,7 @@ SoloIsolateControl::set_state (XMLNode const & node, int version) return -1; } - XMLProperty const * prop; - - if ((prop = node.property ("solo-isolated")) != 0) { - _solo_isolated = string_is_affirmative (prop->value()); - } - + node.get_property ("solo-isolated", _solo_isolated); return 0; } @@ -172,6 +167,6 @@ XMLNode& SoloIsolateControl::get_state () { XMLNode& node (SlavableAutomationControl::get_state()); - node.add_property (X_("solo-isolated"), _solo_isolated ? X_("yes") : X_("no")); + node.set_property (X_("solo-isolated"), _solo_isolated); return node; }