diff options
author | Max Kellermann <max@duempel.org> | 2015-03-25 17:32:17 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-25 17:32:17 +0100 |
commit | cd1148c6aa472ad829217a444a9af2443a4118b0 (patch) | |
tree | 53f81d0c31d0403611029bd0d4e44835096b6953 /src/db/update | |
parent | cfd26f53f00e7222dab5f9ddaabc8ad3adfdc4b0 (diff) | |
download | mpd-cd1148c6aa472ad829217a444a9af2443a4118b0.tar.gz mpd-cd1148c6aa472ad829217a444a9af2443a4118b0.tar.xz mpd-cd1148c6aa472ad829217a444a9af2443a4118b0.zip |
db/update/ExcludeList: use the NarrowPath class
Diffstat (limited to 'src/db/update')
-rw-r--r-- | src/db/update/ExcludeList.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/db/update/ExcludeList.cxx b/src/db/update/ExcludeList.cxx index 2dd761e05..631d45206 100644 --- a/src/db/update/ExcludeList.cxx +++ b/src/db/update/ExcludeList.cxx @@ -25,6 +25,7 @@ #include "config.h" #include "ExcludeList.hxx" #include "fs/Path.hxx" +#include "fs/NarrowPath.hxx" #include "fs/io/TextFile.hxx" #include "util/StringUtil.hxx" #include "util/Error.hxx" @@ -89,7 +90,7 @@ ExcludeList::Check(Path name_fs) const #ifdef HAVE_GLIB for (const auto &i : patterns) - if (i.Check(name_fs.c_str())) + if (i.Check(NarrowPath(name_fs).c_str())) return true; #else // TODO: implement |