Use XMLNode::set_property API in Midi::Port class
authorTim Mayberry <mojofunk@gmail.com>
Sun, 28 Aug 2016 13:22:22 +0000 (23:22 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:48 +0000 (09:36 +1000)
libs/midi++2/port.cc

index 629dff07969ba64b739dce6dfb724d53e997e71d..b7c080b6ac797a0a3964f923681ca9212c6222ed 100644 (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