1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-30 14:38:12 +00:00

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
parent d00c030fce
commit 1f8d72da8e
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());
}
}