fs/DirectoryReader: use C++ exceptions instead of class Error

This commit is contained in:
Max Kellermann
2015-12-29 12:41:45 +01:00
parent 826a654c95
commit f3503e0026
12 changed files with 79 additions and 76 deletions

View File

@@ -174,7 +174,7 @@ LoadPlaylistFileInfo(PlaylistInfo &info,
}
PlaylistVector
ListPlaylistFiles(Error &error)
ListPlaylistFiles()
{
PlaylistVector list;
@@ -182,10 +182,6 @@ ListPlaylistFiles(Error &error)
assert(!parent_path_fs.IsNull());
DirectoryReader reader(parent_path_fs);
if (reader.HasFailed()) {
error.SetErrno();
return list;
}
PlaylistInfo info;
while (reader.ReadEntry()) {