Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(918)

Unified Diff: dbus/bus.cc

Issue 802213003: Standardize usage of virtual/override/final specifiers in dbus/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dbus/dbus_statistics_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/bus.cc
diff --git a/dbus/bus.cc b/dbus/bus.cc
index 9398019820078149efa07ea284e1285f43ca869e..2f1300a25e3fc87f122014df9d3ef5c4f9016281 100644
--- a/dbus/bus.cc
+++ b/dbus/bus.cc
@@ -47,9 +47,7 @@ class Watch : public base::MessagePumpLibevent::Watcher {
dbus_watch_set_data(raw_watch_, this, NULL);
}
- virtual ~Watch() {
- dbus_watch_set_data(raw_watch_, NULL, NULL);
- }
+ ~Watch() override { dbus_watch_set_data(raw_watch_, NULL, NULL); }
// Returns true if the underlying file descriptor is ready to be watched.
bool IsReadyToBeWatched() {
@@ -84,13 +82,13 @@ class Watch : public base::MessagePumpLibevent::Watcher {
private:
// Implement MessagePumpLibevent::Watcher.
- virtual void OnFileCanReadWithoutBlocking(int file_descriptor) override {
+ 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) override {
+ void OnFileCanWriteWithoutBlocking(int file_descriptor) override {
const bool success = dbus_watch_handle(raw_watch_, DBUS_WATCH_WRITABLE);
CHECK(success) << "Unable to allocate memory";
}
« no previous file with comments | « no previous file | dbus/dbus_statistics_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698