mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-22 23:55:12 +00:00
LibWeb: Port HTMLToken::to_deprecated_string to new AK String
This commit is contained in:
committed by
Andreas Kling
parent
d00c030fce
commit
1f8d72da8e
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user