diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-09-21 12:41:42 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2017-04-19 09:37:00 +1000 |
commit | aede5c85d5eabfca8b8e87eb0fd712e7c6c4148d (patch) | |
tree | dcab4c708b71019b0cad31a1644c62d077f89617 /libs/ardour/vca_manager.cc | |
parent | 2386dc7ede0a133193905b4bf23dcf64c0a85648 (diff) |
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.
Diffstat (limited to 'libs/ardour/vca_manager.cc')
-rw-r--r-- | libs/ardour/vca_manager.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |