Use PBD::to_string() from pbd/string_convert.h in ControlSlaveUI
authorTim Mayberry <mojofunk@gmail.com>
Wed, 21 Sep 2016 02:58:56 +0000 (12:58 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:37:01 +0000 (09:37 +1000)
The numeric formatting is equivalent.

gtk2_ardour/control_slave_ui.cc

index 8842590bb1d92658c487b66b2d9b373d5b39dc46..0223b00003483541fe61d94b935470a8436055e7 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <gtkmm/menu.h>
 
-#include "pbd/convert.h"
+#include "pbd/string_convert.h"
 
 #include "ardour/session.h"
 #include "ardour/stripable.h"
@@ -234,7 +234,7 @@ ControlSlaveUI::add_vca_button (boost::shared_ptr<VCA> vca)
        vca_button->set_name (X_("vca assign"));
        vca_button->add_events (Gdk::BUTTON_PRESS_MASK|Gdk::BUTTON_RELEASE_MASK);
        vca_button->signal_button_release_event().connect (sigc::bind (sigc::mem_fun (*this, &ControlSlaveUI::specific_vca_button_release), vca->number()), false);
-       vca_button->set_text (PBD::to_string (vca->number(), std::dec));
+       vca_button->set_text (PBD::to_string (vca->number()));
        vca_button->set_fixed_colors (vca->presentation_info().color(), vca->presentation_info().color ());
 
        vca->presentation_info().PropertyChanged.connect (master_connections, invalidator (*this), boost::bind (&ControlSlaveUI::master_property_changed, this, _1), gui_context());