mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Everywhere: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes
This commit is contained in:
committed by
Sam Atkins
parent
2ebd79bc76
commit
0184fc5e43
Notes:
sideshowbarker
2024-07-17 11:34:34 +09:00
Author: https://github.com/BenWiederhake Commit: https://github.com/SerenityOS/serenity/commit/0184fc5e43 Pull-request: https://github.com/SerenityOS/serenity/pull/19422
@@ -21,6 +21,7 @@ class HTMLTokenizer;
|
||||
|
||||
class HTMLToken {
|
||||
AK_MAKE_NONCOPYABLE(HTMLToken);
|
||||
AK_MAKE_DEFAULT_MOVABLE(HTMLToken);
|
||||
|
||||
public:
|
||||
enum class Type : u8 {
|
||||
@@ -95,9 +96,6 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
HTMLToken(HTMLToken&&) = default;
|
||||
HTMLToken& operator=(HTMLToken&&) = default;
|
||||
|
||||
bool is_doctype() const { return m_type == Type::DOCTYPE; }
|
||||
bool is_start_tag() const { return m_type == Type::StartTag; }
|
||||
bool is_end_tag() const { return m_type == Type::EndTag; }
|
||||
|
||||
Reference in New Issue
Block a user