encoder: migrate from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-11-07 09:20:12 +01:00
parent b8aac3f8fc
commit d8b6aff23a
16 changed files with 299 additions and 477 deletions

View File

@@ -47,9 +47,8 @@ public:
}
/* virtual methods from class Encoder */
bool Flush(Error &) override {
Flush();
return true;
void Flush() final {
flush = true;
}
size_t Read(void *dest, size_t length) override {
@@ -67,11 +66,6 @@ public:
return ReadPage(page, dest, length);
}
protected:
void Flush() {
flush = true;
}
};
#endif