diff options
author | Andreas Kling <kling@serenityos.org> | 2022-02-13 12:32:30 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-13 14:44:36 +0100 |
commit | c74b6c06a55cb7c15b586538a44d1017f2a33c78 (patch) | |
tree | 1c36c3418f2922c898b1f88a7213b758735390f5 /AK | |
parent | 22f6f0fc9e51b3285ed7741d2c78f1d987ad4e42 (diff) | |
download | serenity-c74b6c06a55cb7c15b586538a44d1017f2a33c78.zip |
AK: Use ByteBuffer::append(u8) in StringBuilder single-char append
Diffstat (limited to 'AK')
-rw-r--r-- | AK/StringBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/StringBuilder.cpp b/AK/StringBuilder.cpp index 9b5f31505a..22c31507b2 100644 --- a/AK/StringBuilder.cpp +++ b/AK/StringBuilder.cpp @@ -49,7 +49,7 @@ ErrorOr<void> StringBuilder::try_append(StringView string) ErrorOr<void> StringBuilder::try_append(char ch) { TRY(will_append(1)); - TRY(m_buffer.try_append(&ch, 1)); + TRY(m_buffer.try_append(ch)); return {}; } |