mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 14:14:45 +03: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
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 New Issue
Block a user