summaryrefslogtreecommitdiff
path: root/libs/ardour/control_protocol_manager.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-05-04 15:00:30 +0000
committerCarl Hetherington <carl@carlh.net>2011-05-04 15:00:30 +0000
commit09c001479042a9f0f7f39882e86a5a5b6b0b204e (patch)
tree8137edd49c3d9e6ddca367548a7ecbf85fe5daad /libs/ardour/control_protocol_manager.cc
parent4216d201fb8d9e29c4760d07a41b129753a71c8b (diff)
No-op; coding style.
git-svn-id: svn://localhost/ardour2/branches/3.0@9474 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/control_protocol_manager.cc')
-rw-r--r--libs/ardour/control_protocol_manager.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc
index 662d41064a..acfe7e3603 100644
--- a/libs/ardour/control_protocol_manager.cc
+++ b/libs/ardour/control_protocol_manager.cc
@@ -328,7 +328,7 @@ ControlProtocolManager::set_state (const XMLNode& node, int /*version*/)
}
XMLNode&
-ControlProtocolManager::get_state (void)
+ControlProtocolManager::get_state ()
{
XMLNode* root = new XMLNode (state_node_name);
Glib::Mutex::Lock lm (protocols_lock);
@@ -342,12 +342,10 @@ ControlProtocolManager::get_state (void)
child->add_property (X_("active"), "yes");
// should we update (*i)->state here? probably.
root->add_child_nocopy (*child);
- }
- else if ((*i)->state) {
+ } else if ((*i)->state) {
// keep ownership clear
root->add_child_copy (*(*i)->state);
- }
- else {
+ } else {
child = new XMLNode (X_("Protocol"));
child->add_property (X_("name"), (*i)->name);
child->add_property (X_("active"), "no");