summaryrefslogtreecommitdiff
path: root/AK/StringBuilder.h
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2021-02-23 09:58:15 +0330
committerAndreas Kling <kling@serenityos.org>2021-02-23 13:59:33 +0100
commit7c2754c3a6659f66e790ab18f6397170ea2f2258 (patch)
tree235bfbe735720c6aa3d4bebe7bf1c9497c0bef70 /AK/StringBuilder.h
parentc989e55195ec0149356d3c1bb3ceee16c20f7747 (diff)
downloadserenity-7c2754c3a6659f66e790ab18f6397170ea2f2258.zip
AK+Kernel+Userland: Enable some more compiletime format string checks
This enables format string checks for three more functions: - String::formatted() - Builder::appendff() - KBufferBuilder::appendff()
Diffstat (limited to 'AK/StringBuilder.h')
-rw-r--r--AK/StringBuilder.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/AK/StringBuilder.h b/AK/StringBuilder.h
index a430f3e95a..e578ca885b 100644
--- a/AK/StringBuilder.h
+++ b/AK/StringBuilder.h
@@ -52,9 +52,9 @@ public:
void append_escaped_for_json(const StringView&);
template<typename... Parameters>
- void appendff(StringView fmtstr, const Parameters&... parameters)
+ void appendff(CheckedFormatString<Parameters...>&& fmtstr, const Parameters&... parameters)
{
- vformat(*this, fmtstr, VariadicFormatParams { parameters... });
+ vformat(*this, fmtstr.view(), VariadicFormatParams { parameters... });
}
String build() const;