diff options
author | dcheng <dcheng@chromium.org> | 2014-12-22 15:10:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-22 23:10:45 +0000 |
commit | 40b4fa47b9288a0c262ecd3730e70bd4bb44576b (patch) | |
tree | 75f79051b753040dc6ce920c5ab32edc54c71bf4 /device/hid/hid_connection_linux.cc | |
parent | 1b3b125e900adb9d8493c6ac4aa4a8ef24d2a631 (diff) | |
download | chromium_src-40b4fa47b9288a0c262ecd3730e70bd4bb44576b.zip chromium_src-40b4fa47b9288a0c262ecd3730e70bd4bb44576b.tar.gz chromium_src-40b4fa47b9288a0c262ecd3730e70bd4bb44576b.tar.bz2 |
Standardize usage of virtual/override/final specifiers in device/.
The Google C++ style guide states:
Explicitly annotate overrides of virtual functions or virtual
destructors with an override or (less frequently) final specifier.
Older (pre-C++11) code will use the virtual keyword as an inferior
alternative annotation. For clarity, use exactly one of override,
final, or virtual when declaring an override.
To better conform to these guidelines, the following constructs have
been rewritten:
- if a base class has a virtual destructor, then:
virtual ~Foo(); -> ~Foo() override;
- virtual void Foo() override; -> void Foo() override;
- virtual void Foo() override final; -> void Foo() final;
This patch was automatically generated. The clang plugin can generate
fixit hints, which are suggested edits when it is 100% sure it knows how
to fix a problem. The hints from the clang plugin were applied to the
source tree using the tool in https://codereview.chromium.org/598073004.
Several formatting edits by clang-format were manually reverted, due to
mangling of some of the more complicate IPC macros.
BUG=417463
Review URL: https://codereview.chromium.org/818093003
Cr-Commit-Position: refs/heads/master@{#309481}
Diffstat (limited to 'device/hid/hid_connection_linux.cc')
-rw-r--r-- | device/hid/hid_connection_linux.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/device/hid/hid_connection_linux.cc b/device/hid/hid_connection_linux.cc index 47ae825..27975e2 100644 --- a/device/hid/hid_connection_linux.cc +++ b/device/hid/hid_connection_linux.cc @@ -43,7 +43,7 @@ class HidConnectionLinux::Helper : public base::MessagePumpLibevent::Watcher { has_report_id_ = device_info.has_report_id; } - virtual ~Helper() { DCHECK(thread_checker_.CalledOnValidThread()); } + ~Helper() override { DCHECK(thread_checker_.CalledOnValidThread()); } // Starts the FileDescriptorWatcher that reads input events from the device. // Must be called on a thread that has a base::MessageLoopForIO. The helper |