storage: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-10-27 08:40:40 +02:00
parent cab87e9398
commit c598686bd9
19 changed files with 208 additions and 281 deletions

View File

@@ -36,14 +36,11 @@ MemoryStorageDirectoryReader::Read()
return entries.front().name.c_str();
}
bool
MemoryStorageDirectoryReader::GetInfo(gcc_unused bool follow,
StorageFileInfo &info,
gcc_unused Error &error)
StorageFileInfo
MemoryStorageDirectoryReader::GetInfo(gcc_unused bool follow)
{
assert(!first);
assert(!entries.empty());
info = entries.front().info;
return true;
return entries.front().info;
}