diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-08-29 17:54:11 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:36:56 +1000 |
commit | 8d90723e8c66c9cbfab147746f9611d887aaf05c (patch) | |
tree | 48404747215cfb94691eec26fc1d31e79ebeeaf1 /gtk2_ardour/gui_object.h | |
parent | 0bfdab738b2556c6651a83c3bb716fe9cf009d80 (diff) |
Use XMLNode::set_property API in GUIObject class
Diffstat (limited to 'gtk2_ardour/gui_object.h')
-rw-r--r-- | gtk2_ardour/gui_object.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/gui_object.h b/gtk2_ardour/gui_object.h index 62eeaa9a33..c9082807fb 100644 --- a/gtk2_ardour/gui_object.h +++ b/gtk2_ardour/gui_object.h @@ -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. |