mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Use Noncopyable.h in Badge
This commit is contained in:
committed by
Sam Atkins
parent
cca84aa28d
commit
501a7dbaa3
10
AK/Badge.h
10
AK/Badge.h
@@ -6,24 +6,22 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Noncopyable.h>
|
||||
#include <AK/Platform.h>
|
||||
|
||||
namespace AK {
|
||||
|
||||
template<typename T>
|
||||
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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user