diff --git a/Userland/Libraries/LibCore/SecretString.h b/Userland/Libraries/LibCore/SecretString.h index 0e5db04d6e..4037800960 100644 --- a/Userland/Libraries/LibCore/SecretString.h +++ b/Userland/Libraries/LibCore/SecretString.h @@ -14,6 +14,7 @@ namespace Core { class SecretString { AK_MAKE_NONCOPYABLE(SecretString); + AK_MAKE_DEFAULT_MOVABLE(SecretString); public: [[nodiscard]] static ErrorOr take_ownership(char*&, size_t); @@ -26,8 +27,6 @@ public: SecretString() = default; ~SecretString(); - SecretString(SecretString&&) = default; - SecretString& operator=(SecretString&&) = default; private: explicit SecretString(ByteBuffer&&); diff --git a/Userland/Libraries/LibCore/System.h b/Userland/Libraries/LibCore/System.h index 98d1f7b6d2..912f2f4941 100644 --- a/Userland/Libraries/LibCore/System.h +++ b/Userland/Libraries/LibCore/System.h @@ -237,9 +237,9 @@ ErrorOr poll(Span, int timeout); class AddressInfoVector { AK_MAKE_NONCOPYABLE(AddressInfoVector); + AK_MAKE_DEFAULT_MOVABLE(AddressInfoVector); public: - AddressInfoVector(AddressInfoVector&&) = default; ~AddressInfoVector() = default; ReadonlySpan addresses() const { return m_addresses; } diff --git a/Userland/Libraries/LibCore/ThreadEventQueue.cpp b/Userland/Libraries/LibCore/ThreadEventQueue.cpp index 61a947e653..6bd5514d4f 100644 --- a/Userland/Libraries/LibCore/ThreadEventQueue.cpp +++ b/Userland/Libraries/LibCore/ThreadEventQueue.cpp @@ -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) @@ -26,12 +27,6 @@ struct ThreadEventQueue::Private { { } - QueuedEvent(QueuedEvent&& other) - : receiver(other.receiver) - , event(move(other.event)) - { - } - ~QueuedEvent() = default; WeakPtr receiver;