From 661ba986d71b79284612cb034f635e843f2e2c16 Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 19 Jul 2022 14:26:40 +0200 Subject: [PATCH] Small tweaks. --- modules/web/html/html_parser.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/web/html/html_parser.cpp b/modules/web/html/html_parser.cpp index 509de84c4..f32d111a3 100644 --- a/modules/web/html/html_parser.cpp +++ b/modules/web/html/html_parser.cpp @@ -2,7 +2,6 @@ #include "core/error_macros.h" #include "core/log/logger.h" -#include "core/print_string.h" bool HTMLParserAttribute::match_attrib(const String &attrib) { return attribute == attrib; @@ -94,7 +93,7 @@ Ref HTMLParserTag::get_attribute(const String &attrib) { } } - return nullptr; + return Ref(); } bool HTMLParserTag::has_attribute(const String &attrib) { @@ -118,7 +117,7 @@ Ref HTMLParserTag::get_attribute(const String &attrib, cons } } - return nullptr; + return Ref(); } bool HTMLParserTag::has_attribute(const String &attrib, const String &contains_val) { @@ -528,7 +527,7 @@ void HTMLParser::parse(const String &data) { for (int i = 0; i < tags.size(); ++i) { Ref t = tags[i]; - ERR_CONTINUE_MSG(!t.is_valid(), "HTMLParser::parse: t == nullptr!"); + ERR_CONTINUE(!t.is_valid()); if (t->type == HTMLParserTag::HTML_PARSER_TAG_TYPE_NONE) { ERR_PRINT("HTMLParser::parse: t->type == HTMLParserTag::HTML_PARSER_TAG_TYPE_NONE!");