mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
LibWeb: Make HTMLTokens non-copyable
This commit is contained in:
parent
7eb294df0d
commit
8a4c44db8c
Notes:
sideshowbarker
2024-07-18 08:52:28 +09:00
Author: https://github.com/MaxWipfli Commit: https://github.com/SerenityOS/serenity/commit/8a4c44db8c8 Pull-request: https://github.com/SerenityOS/serenity/pull/8784 Reviewed-by: https://github.com/Hendiadyoin1 Reviewed-by: https://github.com/alimpfard
1 changed files with 4 additions and 0 deletions
|
@ -19,6 +19,7 @@ namespace Web::HTML {
|
|||
class HTMLTokenizer;
|
||||
|
||||
class HTMLToken {
|
||||
AK_MAKE_NONCOPYABLE(HTMLToken);
|
||||
|
||||
public:
|
||||
enum class Type {
|
||||
|
@ -79,6 +80,9 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
HTMLToken(HTMLToken&& other) = default;
|
||||
HTMLToken& operator=(HTMLToken&& other) = 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; }
|
||||
|
|
Loading…
Reference in a new issue