13
0

Use XMLNode::set_property API in PBD::StatefulDiffCommand class

This commit is contained in:
Tim Mayberry 2016-08-28 22:56:44 +10:00
parent 9587e11f97
commit fe577dcbd5

View 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"));