diff options
-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: |