diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-22 13:26:25 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-22 13:26:25 +0000 |
commit | 93664a2adac106c3a3bd0346816ef410f234fea4 (patch) | |
tree | 3c19538b5bbbf4657d77b19b408e1687645dee8d /libs/ardour/session_state.cc | |
parent | 13b50783fdf41296582bb990801c88f98b12ff4c (diff) |
fix for recent portability-oriented change to all session foobar_dir() methods
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3386 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index e419753159..8604f2cc2c 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -1672,9 +1672,7 @@ Session::save_template (string template_name) tree.set_root (&get_template()); - xml_path = dir; - xml_path += template_name; - xml_path += _template_suffix; + xml_path = Glib::build_filename(dir, template_name + _template_suffix); ifstream in(xml_path.c_str()); @@ -1696,8 +1694,8 @@ Session::save_template (string template_name) int Session::rename_template (string old_name, string new_name) { - string old_path = template_dir() + old_name + _template_suffix; - string new_path = template_dir() + new_name + _template_suffix; + string old_path = Glib::build_filename(template_dir(), old_name + _template_suffix); + string new_path = Glib::build_filename(template_dir(), new_name + _template_suffix); return rename (old_path.c_str(), new_path.c_str()); } @@ -1705,9 +1703,7 @@ Session::rename_template (string old_name, string new_name) int Session::delete_template (string name) { - string template_path = template_dir(); - template_path += name; - template_path += _template_suffix; + string template_path = Glib::build_filename(template_dir(), name + _template_suffix); return remove (template_path.c_str()); } |