LibAudio: Use new format functions.

This commit is contained in:
asynts 2020-10-15 13:04:32 +02:00 committed by Andreas Kling
commit 805ed03b48
Notes: sideshowbarker 2024-07-19 01:52:18 +09:00
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);