summaryrefslogtreecommitdiff
path: root/libs/ardour/filesystem_paths.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2016-09-21 12:17:19 +1000
committerTim Mayberry <mojofunk@gmail.com>2017-04-19 09:37:00 +1000
commit2386dc7ede0a133193905b4bf23dcf64c0a85648 (patch)
tree7a5fa4a75fd3e1a26f85802e982e0f425dc26c41 /libs/ardour/filesystem_paths.cc
parent797fbfc5dea3b510e87d2744609b646869e4ca8d (diff)
Use PBD::string_to/to_string in ARDOUR::user_config_directory_name()
The numeric formatting is equivalent without requiring a LocaleGuard or the global C++ locale is "C".
Diffstat (limited to 'libs/ardour/filesystem_paths.cc')
-rw-r--r--libs/ardour/filesystem_paths.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/filesystem_paths.cc b/libs/ardour/filesystem_paths.cc
index 94ebc2830e..ee5fc97ad7 100644
--- a/libs/ardour/filesystem_paths.cc
+++ b/libs/ardour/filesystem_paths.cc
@@ -20,8 +20,8 @@
#include <iostream>
#include "pbd/compose.h"
-#include "pbd/convert.h"
#include "pbd/error.h"
+#include "pbd/string_convert.h"
#include <glibmm/miscutils.h>
#include <glibmm/fileutils.h>
@@ -46,7 +46,7 @@ static std::string
user_config_directory_name (int version = -1)
{
if (version < 0) {
- version = atoi (X_(PROGRAM_VERSION));
+ version = string_to<int32_t>(X_(PROGRAM_VERSION));
}
/* ARDOUR::Profile may not be available when this is
@@ -313,7 +313,7 @@ been_here_before_path (int version)
version = atoi (PROGRAM_VERSION);
}
- return Glib::build_filename (user_config_directory (version), string (".a") + to_string (version, std::dec));
+ return Glib::build_filename (user_config_directory (version), string (".a") + to_string (version));
}