diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 23:23:25 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 23:23:25 +0200 |
commit | b3611524f45c2a478f9decd6d22ecd1dbbbb64b9 (patch) | |
tree | d15d0c161e24e5db7d77b768458aa11cb6650878 /src/PlaylistSong.cxx | |
parent | a63613dba0374367907180be5e244db450ff234b (diff) | |
download | mpd-b3611524f45c2a478f9decd6d22ecd1dbbbb64b9.tar.gz mpd-b3611524f45c2a478f9decd6d22ecd1dbbbb64b9.tar.xz mpd-b3611524f45c2a478f9decd6d22ecd1dbbbb64b9.zip |
fs/Path: move definitions to struct PathTraits
Diffstat (limited to 'src/PlaylistSong.cxx')
-rw-r--r-- | src/PlaylistSong.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PlaylistSong.cxx b/src/PlaylistSong.cxx index db6c39b3b..fc1fe884c 100644 --- a/src/PlaylistSong.cxx +++ b/src/PlaylistSong.cxx @@ -25,6 +25,7 @@ #include "ls.hxx" #include "tag/Tag.hxx" #include "fs/Path.hxx" +#include "fs/Traits.hxx" #include "util/UriUtil.hxx" #include "util/Error.hxx" #include "Song.hxx" @@ -98,7 +99,7 @@ playlist_check_load_song(const Song *song, const char *uri, bool secure) if (uri_has_scheme(uri)) { dest = Song::NewRemote(uri); - } else if (Path::IsAbsoluteUTF8(uri) && secure) { + } else if (PathTraits::IsAbsoluteUTF8(uri) && secure) { dest = Song::LoadFile(uri, nullptr); if (dest == nullptr) return nullptr; @@ -147,7 +148,7 @@ playlist_check_translate_song(Song *song, const char *base_uri, functions */ base_uri = nullptr; - if (Path::IsAbsoluteUTF8(uri)) { + if (PathTraits::IsAbsoluteUTF8(uri)) { /* XXX fs_charset vs utf8? */ const char *suffix = map_to_relative_path(uri); assert(suffix != nullptr); |