浏览代码

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

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=239453565
main
costan 5 年前
committed by Victor Costan
父节点
当前提交
15e2278966
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      util/testutil.h

+ 4
- 4
util/testutil.h 查看文件

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

正在加载...
取消
保存