Use XMLNode::set_property API in PBD::StatefulDiffCommand class
authorTim Mayberry <mojofunk@gmail.com>
Sun, 28 Aug 2016 12:56:44 +0000 (22:56 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:48 +0000 (09:36 +1000)
libs/pbd/stateful_diff_command.cc

index 5721b58fd0382d878c693d2903b551bd5f8beb41..e3a65ffc12c69f5551c5d10fc9d7353ffd199056 100644 (file)
@@ -18,6 +18,7 @@
 */
 
 #include "pbd/stateful_diff_command.h"
+#include "pbd/types_convert.h"
 #include "pbd/property_list.h"
 #include "pbd/demangle.h"
 #include "pbd/i18n.h"
@@ -105,8 +106,8 @@ StatefulDiffCommand::get_state ()
 
        XMLNode* node = new XMLNode (X_("StatefulDiffCommand"));
 
-       node->add_property ("obj-id", s->id().to_s());
-       node->add_property ("type-name", demangled_name (*s.get()));
+       node->set_property ("obj-id", s->id());
+       node->set_property ("type-name", demangled_name (*s.get()));
 
         XMLNode* changes = new XMLNode (X_("Changes"));