From c8aa78af07a225d6eb4f26c64732fe5f78be7a32 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 19 Apr 2017 12:51:11 +0200 Subject: Prefer boolean over literal --- libs/ardour/control_protocol_manager.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libs/ardour/control_protocol_manager.cc') diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc index 09d698b60b..b95dc1cbca 100644 --- a/libs/ardour/control_protocol_manager.cc +++ b/libs/ardour/control_protocol_manager.cc @@ -239,7 +239,7 @@ ControlProtocolManager::teardown (ControlProtocolInfo& cpi, bool lock_required) delete cpi.state; cpi.state = new XMLNode (cpi.protocol->get_state()); - cpi.state->set_property (X_("active"), "no"); + cpi.state->set_property (X_("active"), false); cpi.descriptor->destroy (cpi.descriptor, cpi.protocol); @@ -492,16 +492,16 @@ ControlProtocolManager::get_state () if ((*i)->protocol) { XMLNode& child_state ((*i)->protocol->get_state()); - child_state.set_property (X_("active"), "yes"); + child_state.set_property (X_("active"), true); root->add_child_nocopy (child_state); } else if ((*i)->state) { XMLNode* child_state = new XMLNode (*(*i)->state); - child_state->set_property (X_("active"), "no"); + child_state->set_property (X_("active"), false); root->add_child_nocopy (*child_state); } else { XMLNode* child_state = new XMLNode (X_("Protocol")); child_state->set_property (X_("name"), (*i)->name); - child_state->set_property (X_("active"), "no"); + child_state->set_property (X_("active"), false); root->add_child_nocopy (*child_state); } -- cgit v1.2.3