From aede5c85d5eabfca8b8e87eb0fd712e7c6c4148d Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 21 Sep 2016 12:41:42 +1000 Subject: Use PBD::to_string from pbd/string_convert.h in ARDOUR::VCAManager The numeric formatting is equivalent to iostreams when global C++ locale is set to "C" without the need for a LocaleGuard. I'm not sure this would have been an issue as the number of VCA's may never get high enough for digit grouping of the locale to affect numeric output, but now it is not a possibility. --- libs/ardour/vca_manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/vca_manager.cc b/libs/ardour/vca_manager.cc index 20e9e38ca2..ddc50f69ff 100644 --- a/libs/ardour/vca_manager.cc +++ b/libs/ardour/vca_manager.cc @@ -17,9 +17,9 @@ */ -#include "pbd/convert.h" #include "pbd/error.h" #include "pbd/replace_all.h" +#include "pbd/string_convert.h" #include "ardour/boost_debug.h" #include "ardour/session.h" @@ -78,7 +78,7 @@ VCAManager::create_vca (uint32_t howmany, std::string const & name_template) string name = name_template; if (name.find ("%n")) { - string sn = PBD::to_string (num, std::dec); + string sn = PBD::to_string (num); replace_all (name, "%n", sn); } -- cgit v1.2.3