Use XMLNode::set_property API in xml tests
authorTim Mayberry <mojofunk@gmail.com>
Mon, 26 Sep 2016 13:05:47 +0000 (23:05 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:57 +0000 (09:36 +1000)
libs/pbd/test/xml_test.cc

index 541c9f10bb58ac82a907b4796dceebcc25b8b669..267ea2458b3f53e84a4fd06bfc153595c6dabe91 100644 (file)
@@ -181,7 +181,7 @@ create_child_nodes (XMLNode& parent_node, std::vector<NodeOptions>::iterator beg
                }
 
                for (uint32_t prop_count = 0; prop_count < options.node_property_count; ++prop_count) {
-                       new_node->add_property (properties[prop_count].first.c_str (), properties[prop_count].second);
+                       new_node->set_property (properties[prop_count].first.c_str (), properties[prop_count].second);
                }
 
                if (!options.node_content.empty()) {