mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-09 07:05:43 +01:00
Use XMLNode::set_property in PBD::PropertyTemplate<T> class
This commit is contained in:
parent
32f5464490
commit
e01d074ad1
1 changed files with 3 additions and 3 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue