Mapper: improve usage of Path class

This commit is contained in:
Denis Krjuchkov
2013-01-24 00:38:09 +06:00
committed by Max Kellermann
parent a9b62a2ece
commit a3ee26da64
6 changed files with 44 additions and 46 deletions
+3 -3
View File
@@ -56,11 +56,11 @@ playlist_open_in_playlist_dir(const char *uri, GMutex *mutex, GCond *cond,
assert(spl_valid_name(uri));
const char *playlist_directory_fs = map_spl_path();
if (playlist_directory_fs == NULL)
const Path &playlist_directory_fs = map_spl_path();
if (playlist_directory_fs.IsNull())
return NULL;
path_fs = g_build_filename(playlist_directory_fs, uri, NULL);
path_fs = g_build_filename(playlist_directory_fs.c_str(), uri, NULL);
struct playlist_provider *playlist =
playlist_open_path(path_fs, mutex, cond, is_r);