diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 02:24:12 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-02 02:24:12 +0000 |
commit | 4209190e35b11413ede67daf3401ca248ec29291 (patch) | |
tree | dc5997197f0808ef86ea7a2acf63984a450a9bc4 /dbus | |
parent | 40592fcdedb0486f3b4cbdd36b251d80e6be40a2 (diff) | |
download | chromium_src-4209190e35b11413ede67daf3401ca248ec29291.zip chromium_src-4209190e35b11413ede67daf3401ca248ec29291.tar.gz chromium_src-4209190e35b11413ede67daf3401ca248ec29291.tar.bz2 |
Warn on missing OVERRIDE/virtual everywhere, not just in header files.
This is only enabled for Linux (so far).
BUG=115047
Review URL: https://chromiumcodereview.appspot.com/14696007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@197788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/object_manager_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/dbus/object_manager_unittest.cc b/dbus/object_manager_unittest.cc index 3033b20..79f4d21 100644 --- a/dbus/object_manager_unittest.cc +++ b/dbus/object_manager_unittest.cc @@ -113,15 +113,15 @@ class ObjectManagerTest protected: // Called when an object is added. - void ObjectAdded(const dbus::ObjectPath& object_path, - const std::string& interface_name) OVERRIDE { + virtual void ObjectAdded(const dbus::ObjectPath& object_path, + const std::string& interface_name) OVERRIDE { added_objects_.push_back(std::make_pair(object_path, interface_name)); message_loop_.Quit(); } // Called when an object is removed. - void ObjectRemoved(const dbus::ObjectPath& object_path, - const std::string& interface_name) OVERRIDE { + virtual void ObjectRemoved(const dbus::ObjectPath& object_path, + const std::string& interface_name) OVERRIDE { removed_objects_.push_back(std::make_pair(object_path, interface_name)); message_loop_.Quit(); } |