mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
Use XMLNode::set_property API in GUIObject class
This commit is contained in:
parent
0bfdab738b
commit
8d90723e8c
2 changed files with 3 additions and 5 deletions
|
|
@ -49,9 +49,7 @@ public:
|
|||
|
||||
template<typename T> void set_property (const std::string& id, const std::string& prop_name, const T& val) {
|
||||
XMLNode* child = get_or_add_node (id);
|
||||
std::stringstream s;
|
||||
s << val;
|
||||
child->add_property (prop_name.c_str(), s.str());
|
||||
child->set_property (prop_name.c_str(), val);
|
||||
}
|
||||
|
||||
/** Remove node with provided id.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue