mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 08:30:21 +00:00
AK: Use Noncopyable.h
in Badge
This commit is contained in:
parent
0be6603d5e
commit
b35fbe77c6
1 changed files with 4 additions and 6 deletions
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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue