Use PBD::to_string from pbd/string_convert.h in ARDOUR::ExportFilename
authorTim Mayberry <mojofunk@gmail.com>
Wed, 21 Sep 2016 01:38:22 +0000 (11:38 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Tue, 18 Apr 2017 23:37:00 +0000 (09:37 +1000)
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

index 274374e20d1108275d7678ec16df5c0bc166bc67..3e0e3f62bf7d6181aa168d05e9d5655a01a82b96 100644 (file)
@@ -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;
        }