AK: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes in default impls

This commit is contained in:
Ben Wiederhake 2023-06-16 16:03:16 +02:00 committed by Sam Atkins
commit 041f5e931d
Notes: sideshowbarker 2024-07-17 04:34:25 +09:00
3 changed files with 4 additions and 16 deletions

View file

@ -36,6 +36,8 @@ public:
}
SourceGenerator(SourceGenerator&&) = default;
// Move-assign is undefinable due to 'StringBuilder& m_builder;'
SourceGenerator& operator=(SourceGenerator&&) = delete;
ErrorOr<SourceGenerator> fork()
{