From 79aaa2fe0f219f81e2468501cf6b011aa9ff9c13 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 27 Jan 2023 14:53:04 -0500 Subject: [PATCH] AK: Allow the kernel to have access to StringBuilder::to_string This is mostly to prevent String.h from acquiring ifdef-soup. In any case, it's fine for the kernel to see this symbol as it is fallible. --- AK/StringBuilder.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AK/StringBuilder.h b/AK/StringBuilder.h index 21b684e170..7342426be5 100644 --- a/AK/StringBuilder.h +++ b/AK/StringBuilder.h @@ -63,9 +63,10 @@ public: #ifndef KERNEL [[nodiscard]] DeprecatedString to_deprecated_string() const; - ErrorOr to_string() const; #endif + ErrorOr to_string() const; + [[nodiscard]] ByteBuffer to_byte_buffer() const; [[nodiscard]] StringView string_view() const;