diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-09 15:00:14 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-09 15:51:00 +0000 |
commit | e76394d96c6242970b379c7f98d6ab1d08e16d40 (patch) | |
tree | 08e21656fc2b295ad71b0d3db79fb2cdade379d0 /Userland/Libraries/LibGL | |
parent | ad5e8f274219e716c2eb60d974bd835435587209 (diff) | |
download | serenity-e76394d96c6242970b379c7f98d6ab1d08e16d40.zip |
AK: Remove infallible version of StringBuilder::to_byte_buffer
Also drop the try_ prefix from the fallible function, as it is no longer
needed to distinguish the two.
Diffstat (limited to 'Userland/Libraries/LibGL')
-rw-r--r-- | Userland/Libraries/LibGL/GLContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGL/GLContext.cpp b/Userland/Libraries/LibGL/GLContext.cpp index 49510ea0e2..7fa770636c 100644 --- a/Userland/Libraries/LibGL/GLContext.cpp +++ b/Userland/Libraries/LibGL/GLContext.cpp @@ -952,7 +952,7 @@ ErrorOr<ByteBuffer> GLContext::build_extension_string() TRY(string_builder.try_join(' ', extensions)); // Create null-terminated string - auto extensions_bytes = TRY(string_builder.try_to_byte_buffer()); + auto extensions_bytes = TRY(string_builder.to_byte_buffer()); TRY(extensions_bytes.try_append(0)); return extensions_bytes; } |