summaryrefslogtreecommitdiff
path: root/AK/StringBuilder.h
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-08-05 22:23:13 +0430
committerAndreas Kling <kling@serenityos.org>2021-08-06 01:14:03 +0200
commit3829bf115c858b03335ee5ac280df729d0722745 (patch)
treee765d041fff5eb0a4ece48d6b69376c73a2d4a0c /AK/StringBuilder.h
parent705e91d332da998e8d02821c26a7f861350eaa1f (diff)
downloadserenity-3829bf115c858b03335ee5ac280df729d0722745.zip
AK: Make StringBuilder::join() use appendff() instead of append()
`append()` is almost never going to select the overload that is desired. e.g. it will append chars when you pass it a Vector<size_t>, which is definitely not the right overload :)
Diffstat (limited to 'AK/StringBuilder.h')
-rw-r--r--AK/StringBuilder.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/StringBuilder.h b/AK/StringBuilder.h
index 118e5c0958..ea2ddf8156 100644
--- a/AK/StringBuilder.h
+++ b/AK/StringBuilder.h
@@ -57,7 +57,7 @@ public:
first = false;
else
append(separator);
- append(item);
+ appendff("{}", item);
}
}