Replace use of PBD::sys::path with Glib equivalent
authorTim Mayberry <mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:31 +0000 (05:07 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:31 +0000 (05:07 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12845 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/recent_sessions.cc

index 843ea0742f8e907fe8a8e187b0c6780ca05d907b..7c2297448b505d29f06161b13d7b1b17278402f6 100644 (file)
@@ -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());