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

Tests: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls

This commit is contained in:
Ben Wiederhake 2023-06-16 16:13:41 +02:00 committed by Sam Atkins
parent 8ae60dd234
commit 2b2e0a4c5a
3 changed files with 3 additions and 5 deletions

View file

@ -14,12 +14,10 @@ TEST_CASE(sorts_without_copy)
{
struct NoCopy {
AK_MAKE_NONCOPYABLE(NoCopy);
AK_MAKE_DEFAULT_MOVABLE(NoCopy);
public:
NoCopy() = default;
NoCopy(NoCopy&&) = default;
NoCopy& operator=(NoCopy&&) = default;
int value { 0 };
};