From 15e227896621d01ebad4c5d4b3cc82a7a9b5b30b Mon Sep 17 00:00:00 2001 From: costan Date: Wed, 20 Mar 2019 12:41:49 -0700 Subject: [PATCH] Use override consistently in leveldb::test::ErrorEnv. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=239453565 --- util/testutil.h | 8 ++++---- 1 file 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;