diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:09:48 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:09:48 +0000 |
commit | 3959e5bf025fd4b06e5755eecd3644c60823af81 (patch) | |
tree | 524b6d24f0fa02d44602ecf1e08064cbad16372d | |
parent | 218b63cc37ddb4a611e040e408e71b74bea8e6bb (diff) |
Use std::string and Glib::build_filename in UIConfiguration::save_state
git-svn-id: svn://localhost/ardour2/branches/3.0@12904 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/ui_config.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gtk2_ardour/ui_config.cc b/gtk2_ardour/ui_config.cc index 119e8df696..86f03bbd95 100644 --- a/gtk2_ardour/ui_config.cc +++ b/gtk2_ardour/ui_config.cc @@ -25,7 +25,6 @@ #include "pbd/failed_constructor.h" #include "pbd/xml++.h" -#include "pbd/filesystem.h" #include "pbd/file_utils.h" #include "pbd/error.h" @@ -160,10 +159,8 @@ UIConfiguration::save_state() { XMLTree tree; - sys::path rcfile_path(user_config_directory()); - - rcfile_path /= "ardour3_ui.conf"; - const string rcfile = rcfile_path.to_string(); + std::string rcfile(user_config_directory()); + rcfile = Glib::build_filename (rcfile, "ardour3_ui.conf"); // this test seems bogus? if (rcfile.length()) { |