Use ID::to_s() in libpbd instead of ID::print()
authorTim Mayberry <mojofunk@gmail.com>
Fri, 19 Aug 2016 11:39:38 +0000 (21:39 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 21:49:58 +0000 (07:49 +1000)
libs/pbd/controllable.cc

index a2e6265927037065db07855dbfe3021828be3d77..38554bd24abda076c3fb0484cd3562eb7576ef2a 100644 (file)
@@ -121,8 +121,7 @@ Controllable::get_state ()
 
        node->add_property (X_("name"), _name);
 
-       id().print (buf, sizeof (buf));
-       node->add_property (X_("id"), buf);
+       node->add_property (X_("id"), id().to_s());
        node->add_property (X_("flags"), enum_2_string (_flags));
        snprintf (buf, sizeof (buf), "%2.12f", get_save_value());
         node->add_property (X_("value"), buf);