From f137bf4b5542b966abc4c08762c5e60b21913f4d Mon Sep 17 00:00:00 2001 From: Samuel Huang Date: Fri, 13 Aug 2021 15:42:26 +0000 Subject: [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 Commit-Queue: Samuel Huang Cr-Commit-Position: refs/heads/master@{#911751} NOKEYCHECK=True GitOrigin-RevId: ba0e1f56993c535faa59e2ca02c371bae2ebbb20 --- disassembler.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'disassembler.h') diff --git a/disassembler.h b/disassembler.h index 8fd5a3a..48ee0fb 100644 --- a/disassembler.h +++ b/disassembler.h @@ -11,7 +11,6 @@ #include #include -#include "base/macros.h" #include "components/zucchini/buffer_view.h" #include "components/zucchini/image_utils.h" @@ -54,6 +53,8 @@ class Disassembler { return disasm; } + Disassembler(const Disassembler&) = delete; + const Disassembler& operator=(const Disassembler&) = delete; virtual ~Disassembler(); // Returns the type of executable handled by the Disassembler. @@ -85,8 +86,6 @@ class Disassembler { // The number of iterations to run for equivalence map generation. This should // roughly be the max length of reference indirection chains. int num_equivalence_iterations_; - - DISALLOW_COPY_AND_ASSIGN(Disassembler); }; // A ReferenceGroup is associated with a specific |type| and has convenience -- cgit v1.2.3