diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-07 20:45:51 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-07 21:12:09 +0200 |
commit | eb05931ab504cafee47952e2d4c7c3f2df08b784 (patch) | |
tree | 52dfa3b9bd281225fab87b07cbd59d988d827305 /Userland/Libraries/LibGfx/Bitmap.cpp | |
parent | f0687dbbb75f1e0e63c3064c6cca8c501c99bb9f (diff) | |
download | serenity-eb05931ab504cafee47952e2d4c7c3f2df08b784.zip |
LibGfx: Convert StringBuilder::appendf() => AK::Format
Diffstat (limited to 'Userland/Libraries/LibGfx/Bitmap.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/Bitmap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Bitmap.cpp b/Userland/Libraries/LibGfx/Bitmap.cpp index b3be385944..cd4598e8c6 100644 --- a/Userland/Libraries/LibGfx/Bitmap.cpp +++ b/Userland/Libraries/LibGfx/Bitmap.cpp @@ -129,9 +129,9 @@ RefPtr<Bitmap> Bitmap::load_from_file(String const& path, int scale_factor) LexicalPath lexical_path { path }; StringBuilder highdpi_icon_path; highdpi_icon_path.append(lexical_path.dirname()); - highdpi_icon_path.append("/"); + highdpi_icon_path.append('/'); highdpi_icon_path.append(lexical_path.title()); - highdpi_icon_path.appendf("-%dx.", scale_factor); + highdpi_icon_path.appendff("-{}x.", scale_factor); highdpi_icon_path.append(lexical_path.extension()); RefPtr<Bitmap> bmp; |