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 /disassembler_dex.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 'disassembler_dex.h')
-rw-r--r-- | disassembler_dex.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/disassembler_dex.h b/disassembler_dex.h index ecc4be6..2038a3c 100644 --- a/disassembler_dex.h +++ b/disassembler_dex.h @@ -12,7 +12,6 @@ #include <string> #include <vector> -#include "base/macros.h" #include "components/zucchini/disassembler.h" #include "components/zucchini/image_utils.h" #include "components/zucchini/type_dex.h" @@ -112,6 +111,8 @@ class DisassemblerDex : public Disassembler { }; DisassemblerDex(); + DisassemblerDex(const DisassemblerDex&) = delete; + const DisassemblerDex& operator=(const DisassemblerDex&) = delete; ~DisassemblerDex() override; // Applies quick checks to determine if |image| *may* point to the start of an @@ -265,8 +266,6 @@ class DisassemblerDex : public Disassembler { std::vector<offset_t> annotations_directory_item_method_annotation_offsets_; std::vector<offset_t> annotations_directory_item_parameter_annotation_offsets_; - - DISALLOW_COPY_AND_ASSIGN(DisassemblerDex); }; } // namespace zucchini |