Standardize usage of virtual/override/final specifiers.
commitfbf9696ff0bd6307f445c274c8fea5586be9ae28
authordcheng <dcheng@chromium.org>
Tue, 28 Oct 2014 00:07:12 +0000 (27 17:07 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 28 Oct 2014 00:08:04 +0000 (28 00:08 +0000)
treeb8ab8b35e668ee496d4de4126285a874bde6692f
parent56359cbf0a9a17b4dd615fd71ac1b3060fe8a18e
Standardize usage of virtual/override/final specifiers.

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
R=skuhne@chromium.org

Review URL: https://codereview.chromium.org/686593002

Cr-Commit-Position: refs/heads/master@{#301496}
ash/wm/maximize_mode/maximize_mode_controller.h
ash/wm/maximize_mode/maximize_mode_controller_unittest.cc
ash/wm/maximize_mode/maximize_mode_window_manager.h
ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc
ash/wm/maximize_mode/maximize_mode_window_state.h
ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.h
ash/wm/maximize_mode/workspace_backdrop_delegate.h