diff options
author | danakj <danakj@chromium.org> | 2015-03-07 15:04:23 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-07 23:05:13 +0000 |
commit | 71ef42db8b96ccd621e5df2421c375a8725ca872 (patch) | |
tree | 3adcca1ccc4ec2b65dc4a2d1e6a199a1fb87130d /base/containers | |
parent | f52ea14b61ebdf8ad18814da5166a2b30b7a3f66 (diff) | |
download | chromium_src-71ef42db8b96ccd621e5df2421c375a8725ca872.zip chromium_src-71ef42db8b96ccd621e5df2421c375a8725ca872.tar.gz chromium_src-71ef42db8b96ccd621e5df2421c375a8725ca872.tar.bz2 |
base: Put DISALLOW_COPY_AND_ASSIGN inside private section of classes.
This macro should be private to make the constructors hidden, making
them fail at compile time if called, instead of at link time.
R=Nico
BUG=464816,447156
Review URL: https://codereview.chromium.org/986623004
Cr-Commit-Position: refs/heads/master@{#319568}
Diffstat (limited to 'base/containers')
-rw-r--r-- | base/containers/stack_container.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/base/containers/stack_container.h b/base/containers/stack_container.h index 87fa036..54090d3 100644 --- a/base/containers/stack_container.h +++ b/base/containers/stack_container.h @@ -176,6 +176,7 @@ class StackContainer { Allocator allocator_; ContainerType container_; + private: DISALLOW_COPY_AND_ASSIGN(StackContainer); }; |