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 | |
parent | f0687dbbb75f1e0e63c3064c6cca8c501c99bb9f (diff) | |
download | serenity-eb05931ab504cafee47952e2d4c7c3f2df08b784.zip |
LibGfx: Convert StringBuilder::appendf() => AK::Format
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGfx/Bitmap.cpp | 4 | ||||
-rw-r--r-- | Userland/Libraries/LibGfx/Path.cpp | 2 |
2 files changed, 3 insertions, 3 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; diff --git a/Userland/Libraries/LibGfx/Path.cpp b/Userland/Libraries/LibGfx/Path.cpp index 4f6fb916f4..9824065e99 100644 --- a/Userland/Libraries/LibGfx/Path.cpp +++ b/Userland/Libraries/LibGfx/Path.cpp @@ -197,7 +197,7 @@ String Path::to_string() const builder.append("Invalid"); break; } - builder.appendf("(%s", segment.point().to_string().characters()); + builder.appendff("({}", segment.point()); switch (segment.type()) { case Segment::Type::QuadraticBezierCurveTo: |