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/osc.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/osc.cc')
-rw-r--r-- | libs/ardour/osc.cc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/libs/ardour/osc.cc b/libs/ardour/osc.cc index ea3c2f4d4c..101e4cbd93 100644 --- a/libs/ardour/osc.cc +++ b/libs/ardour/osc.cc @@ -28,6 +28,8 @@ #include <unistd.h> #include <fcntl.h> +#include <glibmm/miscutils.h> + #include <pbd/pthread_utils.h> #include <ardour/osc.h> @@ -103,18 +105,17 @@ OSC::start () cerr << "OSC @ " << get_server_url () << endl; - _osc_url_file = get_user_ardour_path () + "/osc_url"; - ofstream urlfile; - urlfile.open(_osc_url_file.c_str(),ios::trunc); - if ( urlfile ) - { - urlfile << get_server_url () << endl; - urlfile.close(); - } - else - { - cerr << "Couldn't write '" << _osc_url_file << "'" <<endl; - } + _osc_url_file = Glib::build_filename (get_user_ardour_path (), "osc_url"); + + ofstream urlfile; + urlfile.open(_osc_url_file.c_str(),ios::trunc); + + if (urlfile) { + urlfile << get_server_url () << endl; + urlfile.close(); + } else { + cerr << "Couldn't write '" << _osc_url_file << "'" <<endl; + } register_callbacks(); |