mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Replace use of PBD::sys::path with Glib equivalent
git-svn-id: svn://localhost/ardour2/branches/3.0@12845 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d8520401d0
commit
8cb88c8c2e
1 changed files with 4 additions and 11 deletions
|
|
@ -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());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue