From 1dadaf3e059f1a7819cb9ffab79c0367ef0eecec Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 23 Jun 2012 05:09:28 +0000 Subject: [PATCH] Use std::string instead of sys::path in Session::jack_session_event git-svn-id: svn://localhost/ardour2/branches/3.0@12895 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/session_state.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 9c20e0f12a..b70c640197 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -722,13 +722,14 @@ Session::jack_session_event (jack_session_event_t * event) if (save_state (timebuf)) { event->flags = JackSessionSaveError; } else { - sys::path xml_path (_session_dir->root_path()); - xml_path /= legalize_for_path (timebuf) + statefile_suffix; + std::string xml_path (_session_dir->root_path()); + std::string legalized_filename = legalize_for_path (timebuf) + statefile_suffix; + xml_path = Glib::build_filename (xml_path, legalized_filename); string cmd ("ardour3 -P -U "); cmd += event->client_uuid; cmd += " \""; - cmd += xml_path.to_string(); + cmd += xml_path; cmd += '\"'; event->command_line = strdup (cmd.c_str());