mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
AK: Make StringBuilder::appendf() pre-allocate the format string length.
This commit is contained in:
parent
fa89446cb6
commit
30b0e5f82e
Notes:
sideshowbarker
2024-07-19 14:41:52 +09:00
Author: https://github.com/awesomekling
Commit: 30b0e5f82e
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ void StringBuilder::appendf(const char* fmt, ...)
|
|||
{
|
||||
va_list ap;
|
||||
va_start(ap, fmt);
|
||||
will_append(strlen(fmt));
|
||||
appendvf(fmt, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue