mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 00:50:22 +00:00
AK: Delete the Badge copy and move constructors.
This commit is contained in:
parent
c4d24bb4e9
commit
e673bb921e
Notes:
sideshowbarker
2024-07-19 13:39:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/e673bb921e5
1 changed files with 13 additions and 0 deletions
13
AK/Badge.h
13
AK/Badge.h
|
@ -1,7 +1,20 @@
|
|||
#pragma once
|
||||
|
||||
namespace AK {
|
||||
|
||||
template<typename T>
|
||||
class Badge {
|
||||
friend T;
|
||||
Badge() {}
|
||||
|
||||
Badge(const Badge&) = delete;
|
||||
Badge& operator=(const Badge&) = delete;
|
||||
|
||||
Badge(Badge&&) = delete;
|
||||
Badge& operator=(Badge&&) = delete;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
using AK::Badge;
|
||||
|
||||
|
|
Loading…
Reference in a new issue