fs/Path: move definitions to struct PathTraits

This commit is contained in:
Max Kellermann
2013-10-17 23:23:25 +02:00
parent a63613dba0
commit b3611524f4
18 changed files with 155 additions and 106 deletions

View File

@@ -28,7 +28,7 @@
#include "TextFile.hxx"
#include "util/UriUtil.hxx"
#include "util/Error.hxx"
#include "fs/Path.hxx"
#include "fs/Traits.hxx"
#include "Log.hxx"
#include <glib.h>
@@ -91,7 +91,7 @@ queue_load_song(TextFile &file, const char *line, queue *queue)
if (g_str_has_prefix(line, SONG_BEGIN)) {
const char *uri = line + sizeof(SONG_BEGIN) - 1;
if (!uri_has_scheme(uri) && !Path::IsAbsoluteUTF8(uri))
if (!uri_has_scheme(uri) && !PathTraits::IsAbsoluteUTF8(uri))
return;
Error error;