mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:18:11 +00:00
LibCore: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls
This commit is contained in:
parent
2b2e0a4c5a
commit
2ebd79bc76
3 changed files with 3 additions and 9 deletions
|
@ -18,6 +18,7 @@ namespace Core {
|
|||
struct ThreadEventQueue::Private {
|
||||
struct QueuedEvent {
|
||||
AK_MAKE_NONCOPYABLE(QueuedEvent);
|
||||
AK_MAKE_DEFAULT_MOVABLE(QueuedEvent);
|
||||
|
||||
public:
|
||||
QueuedEvent(Object& receiver, NonnullOwnPtr<Event> event)
|
||||
|
@ -26,12 +27,6 @@ struct ThreadEventQueue::Private {
|
|||
{
|
||||
}
|
||||
|
||||
QueuedEvent(QueuedEvent&& other)
|
||||
: receiver(other.receiver)
|
||||
, event(move(other.event))
|
||||
{
|
||||
}
|
||||
|
||||
~QueuedEvent() = default;
|
||||
|
||||
WeakPtr<Object> receiver;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue