summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-08-28 22:56:44 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:36:48 +1000
commitfe577dcbd5820383d784ceb87b33452e42c33a67 (patch)
treed1254c89bbdfd6c907b56e9fd57a563b7d853775 /libs
parent9587e11f97026b15d392f2aa8e5e8c9284cd054b (diff)
Use XMLNode::set_property API in PBD::StatefulDiffCommand class
Diffstat (limited to 'libs')
-rw-r--r--libs/pbd/stateful_diff_command.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/pbd/stateful_diff_command.cc b/libs/pbd/stateful_diff_command.cc
index 5721b58fd0..e3a65ffc12 100644
--- a/libs/pbd/stateful_diff_command.cc
+++ b/libs/pbd/stateful_diff_command.cc
@@ -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"));