mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 07:07:23 +00:00
Everywhere: Use AK_MAKE_DEFAULT_MOVABLE to avoid mistakes
This commit is contained in:
committed by
Sam Atkins
parent
2ebd79bc76
commit
0184fc5e43
@@ -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