mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibWeb: Port HTMLToken::to_deprecated_string to new AK String
This commit is contained in:
parent
d00c030fce
commit
1f8d72da8e
Notes:
sideshowbarker
2024-07-16 18:03:21 +09:00
Author: https://github.com/shannonbooth
Commit: 1f8d72da8e
Pull-request: https://github.com/SerenityOS/serenity/pull/21815
Reviewed-by: https://github.com/awesomekling
5 changed files with 6 additions and 8 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue