mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
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.
This commit is contained in:
parent
0d722b4111
commit
79aaa2fe0f
Notes:
sideshowbarker
2024-07-17 01:04:42 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/SerenityOS/serenity/commit/79aaa2fe0f Pull-request: https://github.com/SerenityOS/serenity/pull/17206 Reviewed-by: https://github.com/linusg ✅
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue