diff options
author | mlamouri <mlamouri@chromium.org> | 2015-07-03 03:27:50 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-03 10:28:30 +0000 |
commit | 8cd0029ed083a2d9792c7cefdcb6381eb375357f (patch) | |
tree | c0233f925383992a8027408826471debc66d33c8 /base | |
parent | 294879611d3d64e57d762a117413a2f14bed03ad (diff) | |
download | chromium_src-8cd0029ed083a2d9792c7cefdcb6381eb375357f.zip chromium_src-8cd0029ed083a2d9792c7cefdcb6381eb375357f.tar.gz chromium_src-8cd0029ed083a2d9792c7cefdcb6381eb375357f.tar.bz2 |
Use "= delete" for DISALLOW_IMPLICIT_CONSTRUCTORS.
This will guarantee the error to be at compile time, and not rely on
the call visibility (private).
This is part of a three-sided CL:
1. https://codereview.chromium.org/1211403004
2. <this>
3. https://codereview.chromium.org/1222143003
BUG=447156
Review URL: https://codereview.chromium.org/1212403003
Cr-Commit-Position: refs/heads/master@{#337298}
Diffstat (limited to 'base')
-rw-r--r-- | base/macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/macros.h b/base/macros.h index 0325e74..53b3926 100644 --- a/base/macros.h +++ b/base/macros.h @@ -41,7 +41,7 @@ // that wants to prevent anyone from instantiating it. This is // especially useful for classes containing only static methods. #define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName) \ - TypeName(); \ + TypeName() = delete; \ DISALLOW_COPY_AND_ASSIGN(TypeName) // The arraysize(arr) macro returns the # of elements in an array arr. |