diff options
author | Samuel Huang <huangs@chromium.org> | 2021-08-13 15:42:26 +0000 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2021-08-13 08:54:54 -0700 |
commit | f137bf4b5542b966abc4c08762c5e60b21913f4d (patch) | |
tree | 09c6bdbdfaa7dd2f09d32a791a6aa364b0eeb2ba /encoded_view.h | |
parent | fa10b05c4854c6d8a603ee47c2a213cbc23f8646 (diff) | |
download | zucchini-f137bf4b5542b966abc4c08762c5e60b21913f4d.tar.gz |
[Zucchini] Replace DISALLOW_* macros with =delete versions.
This CL replaces
* 30 instances of DISALLOW_COPY_AND_ASSIGN(Foo),
* 1 instance of DISALLOW_IMPLICIT_CONSTRUCTORS(Foo),
in Zucchini with:
Foo() = delete; // DISALLOW_IMPLICIT_CONSTRUCTORS only.
Foo(const Foo&) = delete;
const Foo& operator=(const Foo&) = delete;
All base/macros.h includes are removed.
Bug: 1010217
Change-Id: I13b3d5ed04f04e5c0b209d59e70ac018c5f4938c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3093198
Reviewed-by: Etienne Pierre-Doray <etiennep@chromium.org>
Commit-Queue: Samuel Huang <huangs@chromium.org>
Cr-Commit-Position: refs/heads/master@{#911751}
NOKEYCHECK=True
GitOrigin-RevId: ba0e1f56993c535faa59e2ca02c371bae2ebbb20
Diffstat (limited to 'encoded_view.h')
-rw-r--r-- | encoded_view.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/encoded_view.h b/encoded_view.h index bd88099..864d265 100644 --- a/encoded_view.h +++ b/encoded_view.h @@ -11,7 +11,6 @@ #include <iterator> #include <vector> -#include "base/macros.h" #include "components/zucchini/image_index.h" #include "components/zucchini/image_utils.h" @@ -136,6 +135,8 @@ class EncodedView { // |image_index| is the annotated image being adapted, and is required to // remain valid for the lifetime of the object. explicit EncodedView(const ImageIndex& image_index); + EncodedView(const EncodedView&) = delete; + const EncodedView& operator=(const EncodedView&) = delete; ~EncodedView(); // Projects |location| to a scalar value that describes the content at a @@ -177,8 +178,6 @@ class EncodedView { const ImageIndex& image_index_; std::vector<PoolInfo> pool_infos_; - - DISALLOW_COPY_AND_ASSIGN(EncodedView); }; } // namespace zucchini |