diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-16 12:00:33 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-16 14:52:04 +0100 |
commit | c71807a3fc592ab1d2d59c157e122a1b4030cd46 (patch) | |
tree | 3cacfa51d521be5f1fbe17f880391dd7ec42b0fe /Userland/MenuApplets/Audio | |
parent | c90b7881a7313a9b36c7069769b5489c3be4f014 (diff) | |
download | serenity-c71807a3fc592ab1d2d59c157e122a1b4030cd46.zip |
Everywhere: Convert a handful of String::format() => formatted()
Diffstat (limited to 'Userland/MenuApplets/Audio')
-rw-r--r-- | Userland/MenuApplets/Audio/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/MenuApplets/Audio/main.cpp b/Userland/MenuApplets/Audio/main.cpp index 5c7cc73ce3..fdb5f94842 100644 --- a/Userland/MenuApplets/Audio/main.cpp +++ b/Userland/MenuApplets/Audio/main.cpp @@ -161,7 +161,7 @@ private: painter.blit({}, audio_bitmap, audio_bitmap.rect()); if (m_show_percent) { - auto volume_text = m_audio_muted ? "mute" : String::format("%d%%", m_audio_volume); + auto volume_text = m_audio_muted ? "mute" : String::formatted("{}%", m_audio_volume); painter.draw_text({ 16, 3, 24, 16 }, volume_text, Gfx::FontDatabase::default_fixed_width_font(), Gfx::TextAlignment::TopLeft, palette().window_text()); } } |