diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-14 02:26:03 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2008-05-14 02:26:03 +0000 |
commit | 371ca6da989f1bafa836598ddf66bc72da1795fb (patch) | |
tree | 3cf0360ae7a23c07756914967bba89ac9790e3e0 /libs/ardour/vst_plugin.cc | |
parent | 49f73b561b4117131e2d2da001d9dd133846ef62 (diff) |
use Glib::build_filename() more widely
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3347 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/vst_plugin.cc')
-rw-r--r-- | libs/ardour/vst_plugin.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libs/ardour/vst_plugin.cc b/libs/ardour/vst_plugin.cc index 2211b028a7..1c774f7c0c 100644 --- a/libs/ardour/vst_plugin.cc +++ b/libs/ardour/vst_plugin.cc @@ -155,12 +155,9 @@ VSTPlugin::get_state() /* save it to a file */ - string path; + Glib::ustring path = Glib::build_ustring (get_user_ardour_path (), "vst"); struct stat sbuf; - path = get_user_ardour_path (); - path += "vst"; - if (stat (path.c_str(), &sbuf)) { if (errno == ENOENT) { if (g_mkdir_with_parents (path.c_str(), 0600)) { @@ -183,7 +180,7 @@ VSTPlugin::get_state() return *root; } - path += "something"; + path = Glib::build_filename (path, "something"); /* store information */ |