1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

LibAudio: Use new format functions.

This commit is contained in:
asynts 2020-10-15 13:04:32 +02:00 committed by Andreas Kling
parent 80e23d1b98
commit 805ed03b48
2 changed files with 16 additions and 16 deletions

View file

@ -53,7 +53,7 @@ void WavWriter::set_file(const StringView& path)
{
m_file = Core::File::construct(path);
if (!m_file->open(Core::IODevice::ReadWrite)) {
m_error_string = String::format("Can't open file: %s", m_file->error_string());
m_error_string = String::formatted("Can't open file: {}", m_file->error_string());
return;
}
m_file->seek(44);