summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2023-01-27 14:53:04 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-28 00:13:46 +0000
commit79aaa2fe0f219f81e2468501cf6b011aa9ff9c13 (patch)
treeca9f44b3d8f081a1b5ff6e0999e0d1de9c5b62ed
parent0d722b4111748a0150c104b5912f1830dcf7f27c (diff)
downloadserenity-79aaa2fe0f219f81e2468501cf6b011aa9ff9c13.zip
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.
-rw-r--r--AK/StringBuilder.h3
1 files changed, 2 insertions, 1 deletions
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<String> to_string() const;
#endif
+ ErrorOr<String> to_string() const;
+
[[nodiscard]] ByteBuffer to_byte_buffer() const;
[[nodiscard]] StringView string_view() const;