Quellcode durchsuchen

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

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=239453565
naive_version
costan vor 5 Jahren
committed von Victor Costan
Ursprung
Commit
15e2278966
1 geänderte Dateien mit 4 neuen und 4 gelöschten Zeilen
  1. +4
    -4
      util/testutil.h

+ 4
- 4
util/testutil.h Datei anzeigen

@ -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;

Laden…
Abbrechen
Speichern