diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-28 22:55:55 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-28 22:55:55 +0100 |
commit | cc906a2897277d057c80f501c2a4e29c0c36b9f3 (patch) | |
tree | 471ccf4d035b4519ee133354e69aeb475ca96b5a /AK/StringBuilder.h | |
parent | f83a94ca396d55d4fbf76dff7867a30e1e05ecdf (diff) | |
download | serenity-cc906a2897277d057c80f501c2a4e29c0c36b9f3.zip |
VFS: Resolve FIXME in Inode::read_entire() about using dynamic allocation.
Diffstat (limited to 'AK/StringBuilder.h')
-rw-r--r-- | AK/StringBuilder.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AK/StringBuilder.h b/AK/StringBuilder.h index 434f7a917b..60c7569f0f 100644 --- a/AK/StringBuilder.h +++ b/AK/StringBuilder.h @@ -7,11 +7,12 @@ namespace AK { class StringBuilder { public: - StringBuilder() { } + explicit StringBuilder(size_t initial_capacity = 16); ~StringBuilder() { } void append(const String&); void append(char); + void append(const char*, size_t); void appendf(const char*, ...); String build(); |