Replace use of PBD::sys::path in AudioLibrary
authorTim Mayberry <mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:07 +0000 (05:07 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:07 +0000 (05:07 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12834 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audio_library.cc

index 4fdbc708ada0af890395d9c59646e812475000cb..65e8243e5208d5dbe1358e4abf09aaf85811c0cf 100644 (file)
@@ -27,7 +27,6 @@
 #include <glibmm/convert.h>
 
 #include "pbd/compose.h"
-#include "pbd/filesystem.h"
 
 #include "ardour/audio_library.h"
 #include "ardour/utils.h"
@@ -47,16 +46,16 @@ static const char* TAG = "http://ardour.org/ontology/Tag";
 
 AudioLibrary::AudioLibrary ()
 {
-       sys::path sfdb_file_path(user_config_directory ());
+       std::string sfdb_file_path(user_config_directory ());
 
-       sfdb_file_path /= sfdb_file_name;
+       sfdb_file_path = Glib::build_filename (sfdb_file_path, sfdb_file_name);
 
-       src = Glib::filename_to_uri (sfdb_file_path.to_string ());
+       src = Glib::filename_to_uri (sfdb_file_path);
 
        // workaround for possible bug in raptor that crashes when saving to a
        // non-existant file.
 
-       touch_file(sfdb_file_path.to_string());
+       touch_file(sfdb_file_path);
 
        lrdf_read_file(src.c_str());
 }