diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-28 23:04:47 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:48 +1000 |
commit | b320ba1aa5e80056a68f3975394e797f6989c54c (patch) | |
tree | 597ce02c7efdc0f1fd810b4a9974a30b3ad7fd71 /libs/pbd | |
parent | fe577dcbd5820383d784ceb87b33452e42c33a67 (diff) |
Use XMLNode::set_property API in PBD::MementoCommand class
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/memento_command.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/pbd/memento_command.h b/libs/pbd/pbd/memento_command.h index b6e0bc9cf3..7825b2bbb5 100644 --- a/libs/pbd/pbd/memento_command.h +++ b/libs/pbd/pbd/memento_command.h @@ -82,7 +82,7 @@ public: } void add_state (XMLNode* node) { - node->add_property ("obj_id", _object.id().to_s()); + node->set_property ("obj_id", _object.id().to_s()); } void object_died () { @@ -153,7 +153,7 @@ public: XMLNode* node = new XMLNode(name); _binder->add_state (node); - node->add_property ("type_name", _binder->type_name ()); + node->set_property ("type_name", _binder->type_name ()); if (before) { node->add_child_copy(*before); |