From 797fbfc5dea3b510e87d2744609b646869e4ca8d Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Wed, 21 Sep 2016 11:38:22 +1000 Subject: [PATCH] Use PBD::to_string from pbd/string_convert.h in ARDOUR::ExportFilename The numeric formatting is equivalent to using iostreams in the C locale without having to use a LocaleGuard or set global C++ locale. --- libs/ardour/export_filename.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/ardour/export_filename.cc b/libs/ardour/export_filename.cc index 274374e20d..3e0e3f62bf 100644 --- a/libs/ardour/export_filename.cc +++ b/libs/ardour/export_filename.cc @@ -24,7 +24,7 @@ #include #include "pbd/xml++.h" -#include "pbd/convert.h" +#include "pbd/string_convert.h" #include "pbd/enumwriter.h" #include "pbd/localtime_r.h" @@ -209,7 +209,7 @@ ExportFilename::get_path (ExportFormatSpecPtr format) const if (include_revision) { path += filename_empty ? "" : "_"; path += "r"; - path += to_string (revision, std::dec); + path += to_string (revision); filename_empty = false; } @@ -228,7 +228,7 @@ ExportFilename::get_path (ExportFormatSpecPtr format) const if (include_channel) { path += filename_empty ? "" : "_"; path += "channel"; - path += to_string (channel, std::dec); + path += to_string (channel); filename_empty = false; } -- 2.30.2