Use XMLNode::set_property API in Midi::Port class

This commit is contained in:
Tim Mayberry
2016-08-28 23:22:22 +10:00
parent 2d52b425b8
commit dc893a3f21

View File

@@ -143,12 +143,12 @@ XMLNode&
Port::get_state () const
{
XMLNode* root = new XMLNode (state_node_name);
root->add_property ("tag", _tagname);
root->set_property ("tag", _tagname);
if (_flags == IsInput) {
root->add_property ("mode", "input");
root->set_property ("mode", "input");
} else {
root->add_property ("mode", "output");
root->set_property ("mode", "output");
}
#if 0