summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-02-13 12:32:30 +0100
committerAndreas Kling <kling@serenityos.org>2022-02-13 14:44:36 +0100
commitc74b6c06a55cb7c15b586538a44d1017f2a33c78 (patch)
tree1c36c3418f2922c898b1f88a7213b758735390f5 /AK
parent22f6f0fc9e51b3285ed7741d2c78f1d987ad4e42 (diff)
downloadserenity-c74b6c06a55cb7c15b586538a44d1017f2a33c78.zip
AK: Use ByteBuffer::append(u8) in StringBuilder single-char append
Diffstat (limited to 'AK')
-rw-r--r--AK/StringBuilder.cpp2
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 {};
}