summaryrefslogtreecommitdiff
path: root/libs/ardour/export_filename.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-21 11:38:22 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:37:00 +1000
commit797fbfc5dea3b510e87d2744609b646869e4ca8d (patch)
tree30ef8519905be7393938e8b36f4d675cc0253648 /libs/ardour/export_filename.cc
parent0ae2985a21430c2d4784d14849afac71a2cf1c1a (diff)
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.
Diffstat (limited to 'libs/ardour/export_filename.cc')
-rw-r--r--libs/ardour/export_filename.cc6
1 files 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 <glibmm/fileutils.h>
#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;
}