From e01d074ad1d1837055437e372e0102fc34a4c257 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Fri, 26 Aug 2016 22:31:45 +1000 Subject: Use XMLNode::set_property in PBD::PropertyTemplate class --- libs/pbd/pbd/properties.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libs/pbd/pbd') 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 { -- cgit v1.2.3