encoder: migrate from class Error to C++ exceptions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user