diff options
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"; } |