mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:17:44 +00:00
AK: Use StringView literals in Format to avoid strlen
We don't want to be constructing StringViews at runtime if we don't have to in Formatter code.
This commit is contained in:
parent
e49af4bac9
commit
4842c8c902
2 changed files with 4 additions and 4 deletions
|
@ -442,7 +442,7 @@ void FormatBuilder::put_hexdump(ReadonlyBytes bytes, size_t width, char fill)
|
|||
if (width > 0) {
|
||||
if (i % width == 0 && i) {
|
||||
put_char_view(i);
|
||||
put_literal("\n");
|
||||
put_literal("\n"sv);
|
||||
}
|
||||
}
|
||||
put_u64(bytes[i], 16, false, false, true, Align::Right, 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue