diff options
author | costan <costan@google.com> | 2019-03-20 12:41:49 -0700 |
---|---|---|
committer | Victor Costan <pwnall@chromium.org> | 2019-03-20 13:57:32 -0700 |
commit | 15e227896621d01ebad4c5d4b3cc82a7a9b5b30b (patch) | |
tree | 61f35d1ade287523109e0e070fcc037615a9af3d | |
parent | ea49b27d062c4bc998616cef7944f7f9088a327d (diff) | |
download | leveldb-15e227896621d01ebad4c5d4b3cc82a7a9b5b30b.tar.gz |
Use override consistently in leveldb::test::ErrorEnv.rc
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=239453565
-rw-r--r-- | util/testutil.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util/testutil.h b/util/testutil.h index 3934242..a568824 100644 --- a/util/testutil.h +++ b/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; |