From 501a7dbaa359a15f4821fe950e4a730d3a13112e Mon Sep 17 00:00:00 2001 From: Jonne Ransijn Date: Fri, 15 Nov 2024 23:55:59 +0100 Subject: [PATCH] AK: Use `Noncopyable.h` in `Badge` --- AK/Badge.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/AK/Badge.h b/AK/Badge.h index 19af5e88a1f..7733aa0d27a 100644 --- a/AK/Badge.h +++ b/AK/Badge.h @@ -6,24 +6,22 @@ #pragma once +#include #include namespace AK { template class Badge { + AK_MAKE_NONCOPYABLE(Badge); + AK_MAKE_NONMOVABLE(Badge); + public: using Type = T; private: friend T; constexpr Badge() = default; - - Badge(Badge const&) = delete; - Badge& operator=(Badge const&) = delete; - - Badge(Badge&&) = delete; - Badge& operator=(Badge&&) = delete; }; }