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());
}
lrdf_statement pattern;
pattern.subject = strdup(Glib::filename_to_uri(member).c_str());
- pattern.predicate = (char*)TAG;
+ pattern.predicate = const_cast<char*>(TAG);
pattern.object = 0;
pattern.object_type = lrdf_literal;
vector<string>::const_iterator i;
for (i = tags.begin(); i != tags.end(); ++i){
pattern = new lrdf_statement;
- pattern->subject = (char*)"?";
- pattern->predicate = (char*)TAG;
+ pattern->subject = const_cast<char*>("?");
+ pattern->predicate = const_cast<char*>(TAG);
pattern->object = strdup((*i).c_str());
pattern->next = old;