LibWeb: Port HTMLToken::to_deprecated_string to new AK String

This commit is contained in:
Shannon Booth 2023-11-05 11:45:55 +13:00 committed by Andreas Kling
commit 1f8d72da8e
Notes: sideshowbarker 2024-07-16 18:03:21 +09:00
5 changed files with 6 additions and 8 deletions

View file

@ -8,7 +8,7 @@
namespace Web::HTML {
DeprecatedString HTMLToken::to_deprecated_string() const
String HTMLToken::to_string() const
{
StringBuilder builder;
@ -70,7 +70,7 @@ DeprecatedString HTMLToken::to_deprecated_string() const
builder.appendff("@{}:{}-{}:{}", m_start_position.line, m_start_position.column, m_end_position.line, m_end_position.column);
}
return builder.to_deprecated_string();
return MUST(builder.to_string());
}
}