From 8cb88c8c2e6f605342b373ebaad5bbd4334ec7e8 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 23 Jun 2012 05:07:31 +0000 Subject: Replace use of PBD::sys::path with Glib equivalent git-svn-id: svn://localhost/ardour2/branches/3.0@12845 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/recent_sessions.cc | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'libs/ardour/recent_sessions.cc') 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 #include +#include + #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()); -- cgit v1.2.3