diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-26 22:31:45 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:48 +1000 |
commit | e01d074ad1d1837055437e372e0102fc34a4c257 (patch) | |
tree | f1253f6ebf0e99ea970f04e5fed208fa086b012a /libs/pbd/pbd/properties.h | |
parent | 32f5464490dc4dfdd01029a4f6306141e2d4eb66 (diff) |
Use XMLNode::set_property in PBD::PropertyTemplate<T> class
Diffstat (limited to 'libs/pbd/pbd/properties.h')
-rw-r--r-- | libs/pbd/pbd/properties.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/pbd/pbd/properties.h b/libs/pbd/pbd/properties.h index a424b718e8..d176c266cb 100644 --- a/libs/pbd/pbd/properties.h +++ b/libs/pbd/pbd/properties.h @@ -116,7 +116,7 @@ public: } void get_value (XMLNode & node) const { - node.add_property (property_name(), to_string (_current)); + node.set_property (property_name (), _current); } @@ -139,8 +139,8 @@ public: void get_changes_as_xml (XMLNode* history_node) const { XMLNode* node = history_node->add_child (property_name()); - node->add_property ("from", to_string (_old)); - node->add_property ("to", to_string (_current)); + node->set_property ("from", _old); + node->set_property ("to", _current); } void get_changes_as_properties (PropertyList& changes, Command *) const { |