summaryrefslogtreecommitdiff
path: root/libs/ardour/control_protocol_manager.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-04-19 12:51:11 +0200
committerRobin Gareus <robin@gareus.org>2017-04-19 12:51:11 +0200
commitc8aa78af07a225d6eb4f26c64732fe5f78be7a32 (patch)
treed7bc8a262f5bcaf113e33d5b79e6c186092e7f88 /libs/ardour/control_protocol_manager.cc
parent8f1cc261a2b72a4eec621801aff847bf824a3d28 (diff)
Prefer boolean over literal
Diffstat (limited to 'libs/ardour/control_protocol_manager.cc')
-rw-r--r--libs/ardour/control_protocol_manager.cc8
1 files changed, 4 insertions, 4 deletions
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);
}