Everywhere: Convert a handful of String::format() => formatted()

This commit is contained in:
Andreas Kling 2021-01-16 12:00:33 +01:00
commit c71807a3fc
Notes: sideshowbarker 2024-07-18 23:11:15 +09:00
23 changed files with 24 additions and 24 deletions

View file

@ -75,7 +75,7 @@ static int get_source_fd(const char* source)
fd = open(source, O_RDONLY);
if (fd < 0) {
int saved_errno = errno;
auto message = String::format("Failed to open: %s\n", source);
auto message = String::formatted("Failed to open: {}\n", source);
errno = saved_errno;
perror(message.characters());
}