summaryrefslogtreecommitdiffstats
path: root/device/nfc
diff options
context:
space:
mode:
authordcheng <dcheng@chromium.org>2014-10-22 16:07:52 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-22 23:08:15 +0000
commitb5aaf402eb4783b9f62de3ae8485edec343866cc (patch)
treee9f30bd26479007ce31da6833f81743109eba9b4 /device/nfc
parent9cee6105930e94ad2abf2c004efb1d65c0759a0f (diff)
downloadchromium_src-b5aaf402eb4783b9f62de3ae8485edec343866cc.zip
chromium_src-b5aaf402eb4783b9f62de3ae8485edec343866cc.tar.gz
chromium_src-b5aaf402eb4783b9f62de3ae8485edec343866cc.tar.bz2
Standardize usage of virtual/override/final 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. BUG=417463 TBR=keybuk@chromium.org Review URL: https://codereview.chromium.org/663203007 Cr-Commit-Position: refs/heads/master@{#300790}
Diffstat (limited to 'device/nfc')
-rw-r--r--device/nfc/nfc_tag_technology.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/device/nfc/nfc_tag_technology.h b/device/nfc/nfc_tag_technology.h
index 45b3146..8ada39b 100644
--- a/device/nfc/nfc_tag_technology.h
+++ b/device/nfc/nfc_tag_technology.h
@@ -71,7 +71,7 @@ class NfcNdefTagTechnology : public NfcTagTechnology {
// The ErrorCallback is used by methods to asynchronously report errors.
typedef base::Closure ErrorCallback;
- virtual ~NfcNdefTagTechnology();
+ ~NfcNdefTagTechnology() override;
// Interface for observing changes from NFC tags related to NDEF records.
class Observer {
@@ -93,7 +93,7 @@ class NfcNdefTagTechnology : public NfcTagTechnology {
virtual void RemoveObserver(Observer* observer) = 0;
// NfcTagTechnology override.
- virtual bool IsSupportedByTag() const override;
+ bool IsSupportedByTag() const override;
// Returns all NDEF records that were received from the tag in the form of an
// NDEF message. If the returned NDEF message contains no records, this only