1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:47:45 +00:00

LibCore: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls

This commit is contained in:
Ben Wiederhake 2023-06-16 16:15:15 +02:00 committed by Sam Atkins
parent 2b2e0a4c5a
commit 2ebd79bc76
3 changed files with 3 additions and 9 deletions

View file

@ -14,6 +14,7 @@ namespace Core {
class SecretString {
AK_MAKE_NONCOPYABLE(SecretString);
AK_MAKE_DEFAULT_MOVABLE(SecretString);
public:
[[nodiscard]] static ErrorOr<SecretString> take_ownership(char*&, size_t);
@ -26,8 +27,6 @@ public:
SecretString() = default;
~SecretString();
SecretString(SecretString&&) = default;
SecretString& operator=(SecretString&&) = default;
private:
explicit SecretString(ByteBuffer&&);