summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcostan <costan@google.com>2019-03-20 12:41:49 -0700
committerVictor Costan <pwnall@chromium.org>2019-03-20 13:57:32 -0700
commit15e227896621d01ebad4c5d4b3cc82a7a9b5b30b (patch)
tree61f35d1ade287523109e0e070fcc037615a9af3d
parentea49b27d062c4bc998616cef7944f7f9088a327d (diff)
downloadleveldb-rc.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.h8
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;