aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/util/internal/object_location_tracker.h
diff options
context:
space:
mode:
authorKhuzema Pithewan <khuzemap@gmail.com>2018-05-21 15:16:34 -0700
committerKhuzema Pithewan <khuzemap@gmail.com>2018-06-19 11:03:01 -0700
commit6f88e12f9dee4a658913b475e7680952c6ff3cac (patch)
treefb9690e6928deb21cb6df6558d4405a61aede251 /src/google/protobuf/util/internal/object_location_tracker.h
parent2213c1c1f6bae29513729b7285462b24df20d687 (diff)
downloadprotobuf-6f88e12f9dee4a658913b475e7680952c6ff3cac.tar.gz
protobuf-6f88e12f9dee4a658913b475e7680952c6ff3cac.tar.bz2
protobuf-6f88e12f9dee4a658913b475e7680952c6ff3cac.zip
Add "override" for overridden virtual functions
Add "override" for overridden virtual functions. Please refer following issue for discussion on this. https://github.com/google/protobuf/issues/67
Diffstat (limited to 'src/google/protobuf/util/internal/object_location_tracker.h')
-rw-r--r--src/google/protobuf/util/internal/object_location_tracker.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/google/protobuf/util/internal/object_location_tracker.h b/src/google/protobuf/util/internal/object_location_tracker.h
index 8586cecc..f9b90bc4 100644
--- a/src/google/protobuf/util/internal/object_location_tracker.h
+++ b/src/google/protobuf/util/internal/object_location_tracker.h
@@ -47,10 +47,10 @@ class ObjectLocationTracker : public LocationTrackerInterface {
// Creates an empty location tracker.
ObjectLocationTracker() {}
- virtual ~ObjectLocationTracker() {}
+ ~ObjectLocationTracker() override {}
// Returns empty because nothing is tracked.
- virtual string ToString() const { return ""; }
+ string ToString() const override { return ""; }
private:
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ObjectLocationTracker);