summaryrefslogtreecommitdiff
path: root/libs/ardour/recent_sessions.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:31 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:07:31 +0000
commit8cb88c8c2e6f605342b373ebaad5bbd4334ec7e8 (patch)
tree6414f35f3cbb3f8dd517e510ba8fb2d6cc512147 /libs/ardour/recent_sessions.cc
parentd8520401d0c811f84fab5d53ee16d1b098520f36 (diff)
Replace use of PBD::sys::path with Glib equivalent
git-svn-id: svn://localhost/ardour2/branches/3.0@12845 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/recent_sessions.cc')
-rw-r--r--libs/ardour/recent_sessions.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/libs/ardour/recent_sessions.cc b/libs/ardour/recent_sessions.cc
index 843ea0742f..7c2297448b 100644
--- a/libs/ardour/recent_sessions.cc
+++ b/libs/ardour/recent_sessions.cc
@@ -22,8 +22,9 @@
#include <fstream>
#include <algorithm>
+#include <glibmm/miscutils.h>
+
#include "pbd/error.h"
-#include "pbd/filesystem.h"
#include "ardour/rc_configuration.h"
#include "ardour/filesystem_paths.h"
@@ -44,11 +45,7 @@ namespace {
int
ARDOUR::read_recent_sessions (RecentSessions& rs)
{
- sys::path recent_file_path(user_config_directory());
-
- recent_file_path /= recent_file_name;
-
- const string path = recent_file_path.to_string();
+ std::string path = Glib::build_filename (user_config_directory(), recent_file_name);
ifstream recent (path.c_str());
@@ -90,11 +87,7 @@ ARDOUR::read_recent_sessions (RecentSessions& rs)
int
ARDOUR::write_recent_sessions (RecentSessions& rs)
{
- sys::path recent_file_path(user_config_directory());
-
- recent_file_path /= recent_file_name;
-
- const string path = recent_file_path.to_string();
+ std::string path = Glib::build_filename (user_config_directory(), recent_file_name);
ofstream recent (path.c_str());