use syntactic sugar
[ardour.git] / gtk2_ardour / gui_object.h
index 62eeaa9a33cdb8b7e6d40e4b1490570c0361889c..c9082807fbebfbfd453b350b7c9c21bee2779802 100644 (file)
@@ -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.