diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 10:58:26 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-30 10:58:26 +0000 |
commit | e24aa7da728d45736bc70f1fae43c09318ef52a8 (patch) | |
tree | fec9b066f1387dcdefd075375801708110ae6368 /dbus | |
parent | ca3bea8e08198688e98149529836f423feb1054b (diff) | |
download | chromium_src-e24aa7da728d45736bc70f1fae43c09318ef52a8.zip chromium_src-e24aa7da728d45736bc70f1fae43c09318ef52a8.tar.gz chromium_src-e24aa7da728d45736bc70f1fae43c09318ef52a8.tar.bz2 |
dbus: Fix clang warnings about missing virtual and OVERRIDE annotations.
BUG=115047
TBR=satorux@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10900041
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@154116 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/bus.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/bus.cc b/dbus/bus.cc index 7a5d344..73122c2 100644 --- a/dbus/bus.cc +++ b/dbus/bus.cc @@ -33,7 +33,7 @@ class Watch : public base::MessagePumpLibevent::Watcher { dbus_watch_set_data(raw_watch_, this, NULL); } - ~Watch() { + virtual ~Watch() { dbus_watch_set_data(raw_watch_, NULL, NULL); } @@ -74,13 +74,13 @@ class Watch : public base::MessagePumpLibevent::Watcher { private: // Implement MessagePumpLibevent::Watcher. - virtual void OnFileCanReadWithoutBlocking(int file_descriptor) { + virtual void OnFileCanReadWithoutBlocking(int file_descriptor) OVERRIDE { const bool success = dbus_watch_handle(raw_watch_, DBUS_WATCH_READABLE); CHECK(success) << "Unable to allocate memory"; } // Implement MessagePumpLibevent::Watcher. - virtual void OnFileCanWriteWithoutBlocking(int file_descriptor) { + virtual void OnFileCanWriteWithoutBlocking(int file_descriptor) OVERRIDE { const bool success = dbus_watch_handle(raw_watch_, DBUS_WATCH_WRITABLE); CHECK(success) << "Unable to allocate memory"; } |