Use override consistently in leveldb::test::ErrorEnv.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=239453565
This commit is contained in:
costan 2019-03-20 12:41:49 -07:00 committed by Victor Costan
parent ea49b27d06
commit 15e2278966

View File

@ -40,8 +40,8 @@ class ErrorEnv : public EnvWrapper {
delete target(); delete target();
} }
virtual Status NewWritableFile(const std::string& fname, Status NewWritableFile(const std::string& fname,
WritableFile** result) { WritableFile** result) override {
if (writable_file_error_) { if (writable_file_error_) {
++num_writable_file_errors_; ++num_writable_file_errors_;
*result = nullptr; *result = nullptr;
@ -50,8 +50,8 @@ class ErrorEnv : public EnvWrapper {
return target()->NewWritableFile(fname, result); return target()->NewWritableFile(fname, result);
} }
virtual Status NewAppendableFile(const std::string& fname, Status NewAppendableFile(const std::string& fname,
WritableFile** result) { WritableFile** result) override {
if (writable_file_error_) { if (writable_file_error_) {
++num_writable_file_errors_; ++num_writable_file_errors_;
*result = nullptr; *result = nullptr;