mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 17:28:48 +00:00
AK: Remove StringBuilder::build() in favor of to_deprecated_string()
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change.
This commit is contained in:
parent
da81041e97
commit
6e7459322d
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/linusg
Commit: 6e7459322d
Pull-request: https://github.com/SerenityOS/serenity/pull/17192
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/nico ✅
129 changed files with 213 additions and 219 deletions
|
@ -2816,7 +2816,7 @@ void HTMLTokenizer::insert_input_at_insertion_point(DeprecatedString const& inpu
|
|||
builder.append(m_decoded_input.substring(0, m_insertion_point.position));
|
||||
builder.append(input);
|
||||
builder.append(m_decoded_input.substring(m_insertion_point.position));
|
||||
m_decoded_input = builder.build();
|
||||
m_decoded_input = builder.to_deprecated_string();
|
||||
|
||||
m_utf8_view = Utf8View(m_decoded_input);
|
||||
m_utf8_iterator = m_utf8_view.iterator_at_byte_offset(utf8_iterator_byte_offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue