From f9c202dba050d3975f977bb08ceaf0b1b39fa499 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 4 Sep 2007 04:47:54 +0000 Subject: [PATCH] Use PBD::sys::path and SessionDirectory in Session::remove_pending_capture_state for portability git-svn-id: svn://localhost/ardour2/trunk@2371 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 9074a0778c..bdaaa9e153 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -494,13 +494,11 @@ Session::maybe_write_autosave() void Session::remove_pending_capture_state () { - string xml_path; + sys::path xml_path(_session_dir->root_path()); - xml_path = _path; - xml_path += _current_snapshot_name; - xml_path += pending_suffix; + xml_path /= _current_snapshot_name + pending_suffix; - unlink (xml_path.c_str()); + unlink (xml_path.to_string().c_str()); } /** Rename a state file.