mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-12 02:30:30 +09:00
Kernel+AK: Eliminate a couple of temporary String allocations
This commit is contained in:
parent
726c023f9e
commit
1d2f78682b
Notes:
sideshowbarker
2024-07-17 21:57:23 +09:00
Author: https://github.com/BertalanD
Commit: 1d2f78682b
Pull-request: https://github.com/SerenityOS/serenity/pull/11501
7 changed files with 10 additions and 10 deletions
|
@ -121,7 +121,7 @@ ErrorOr<void> KBufferBuilder::append_escaped_for_json(StringView string)
|
|||
break;
|
||||
default:
|
||||
if (ch >= 0 && ch <= 0x1f)
|
||||
TRY(append(String::formatted("\\u{:04x}", ch)));
|
||||
TRY(appendff("\\u{:04x}", ch));
|
||||
else
|
||||
TRY(append(ch));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue