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
This commit is contained in:
parent
96034486b2
commit
f9c202dba0
@ -494,13 +494,11 @@ Session::maybe_write_autosave()
|
|||||||
void
|
void
|
||||||
Session::remove_pending_capture_state ()
|
Session::remove_pending_capture_state ()
|
||||||
{
|
{
|
||||||
string xml_path;
|
sys::path xml_path(_session_dir->root_path());
|
||||||
|
|
||||||
xml_path = _path;
|
xml_path /= _current_snapshot_name + pending_suffix;
|
||||||
xml_path += _current_snapshot_name;
|
|
||||||
xml_path += pending_suffix;
|
|
||||||
|
|
||||||
unlink (xml_path.c_str());
|
unlink (xml_path.to_string().c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Rename a state file.
|
/** Rename a state file.
|
||||||
|
Loading…
Reference in New Issue
Block a user