diff --git a/AK/Format.cpp b/AK/Format.cpp index e7081abb9b..08653293c8 100644 --- a/AK/Format.cpp +++ b/AK/Format.cpp @@ -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); diff --git a/AK/Format.h b/AK/Format.h index 6449b59194..199cab97b4 100644 --- a/AK/Format.h +++ b/AK/Format.h @@ -351,15 +351,15 @@ requires(HasFormatter) struct Formatter> : StandardFormatter { m_precision = m_precision.value_or(NumericLimits::max()); Formatter content_fmt; - builder.put_literal("[ "); + builder.put_literal("[ "sv); bool first = true; for (auto& content : value) { if (!first) - builder.put_literal(", "); + builder.put_literal(", "sv); first = false; content_fmt.format(builder, content); } - builder.put_literal(" ]"); + builder.put_literal(" ]"sv); } };