mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:54:58 +00:00
Kernel+AK: Eliminate a couple of temporary String allocations
This commit is contained in:
parent
726c023f9e
commit
1d2f78682b
7 changed files with 10 additions and 10 deletions
|
@ -184,7 +184,7 @@ void StringBuilder::append_escaped_for_json(StringView string)
|
|||
break;
|
||||
default:
|
||||
if (ch >= 0 && ch <= 0x1f)
|
||||
append(String::formatted("\\u{:04x}", ch));
|
||||
appendff("\\u{:04x}", ch);
|
||||
else
|
||||
append(ch);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue