diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2018-06-25 13:52:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-25 13:52:55 -0700 |
commit | 0b0890b36d01bf7b372cb237998ee793f5cdc433 (patch) | |
tree | 20f4e0b1ad1f74f794f2cb45110841f2b26af23b /src/google/protobuf/util/internal/error_listener.h | |
parent | d9ccd0c0e6bbda9bf4476088eeb46b02d7dcd327 (diff) | |
parent | 6f88e12f9dee4a658913b475e7680952c6ff3cac (diff) |
Merge pull request #4608 from khuzemap/master
Add "override" keyword for overridden virtual functions
Diffstat (limited to 'src/google/protobuf/util/internal/error_listener.h')
-rw-r--r-- | src/google/protobuf/util/internal/error_listener.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/google/protobuf/util/internal/error_listener.h b/src/google/protobuf/util/internal/error_listener.h index a19bd3f7..e3baa224 100644 --- a/src/google/protobuf/util/internal/error_listener.h +++ b/src/google/protobuf/util/internal/error_listener.h @@ -76,16 +76,16 @@ class LIBPROTOBUF_EXPORT ErrorListener { class LIBPROTOBUF_EXPORT NoopErrorListener : public ErrorListener { public: NoopErrorListener() {} - virtual ~NoopErrorListener() {} + virtual ~NoopErrorListener() override {} virtual void InvalidName(const LocationTrackerInterface& loc, - StringPiece invalid_name, StringPiece message) {} + StringPiece invalid_name, StringPiece message) override {} - virtual void InvalidValue(const LocationTrackerInterface& loc, - StringPiece type_name, StringPiece value) {} + virtual void InvalidValue(const LocationTrackerInterface &loc, StringPiece type_name, + StringPiece value) override {} - virtual void MissingField(const LocationTrackerInterface& loc, - StringPiece missing_name) {} + virtual void MissingField(const LocationTrackerInterface &loc, + StringPiece missing_name) override {} private: GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(NoopErrorListener); |