1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:28:12 +00:00

Kernel: Remove confused comment in KBufferBuilder::appendff()

KBufferBuilder exists for code that wants to build a KBuffer instead
of a String. KBuffer is backed by anonymous VM, while String is backed
by a kernel heap allocation.
This commit is contained in:
Andreas Kling 2021-07-20 13:58:38 +02:00
parent d528c9c2ee
commit 4d2473b7fa

View file

@ -31,8 +31,7 @@ public:
template<typename... Parameters>
void appendff(CheckedFormatString<Parameters...>&& fmtstr, const Parameters&... parameters)
{
// FIXME: This is really not the way to go about it, but vformat expects a
// StringBuilder. Why does this class exist anyways?
// FIXME: This really not ideal, but vformat expects StringBuilder.
StringBuilder builder;
vformat(builder, fmtstr.view(), AK::VariadicFormatParams { parameters... });
append_bytes(builder.string_view().bytes());