diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-21 21:11:16 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-21 23:49:01 +0200 |
commit | e875d4e044471084003e113eb87e6dd412a30132 (patch) | |
tree | ea8c82b57428106421a47f74c266cd0be5118838 /Userland/Libraries/LibGfx/Bitmap.cpp | |
parent | d996e43df6647e24f64a5f518f8b6f5c7f788fec (diff) | |
download | serenity-e875d4e044471084003e113eb87e6dd412a30132.zip |
LibGfx: Convert String::format() => String::formatted()
Diffstat (limited to 'Userland/Libraries/LibGfx/Bitmap.cpp')
-rw-r--r-- | Userland/Libraries/LibGfx/Bitmap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Bitmap.cpp b/Userland/Libraries/LibGfx/Bitmap.cpp index bb9636a60f..a57c88c9d7 100644 --- a/Userland/Libraries/LibGfx/Bitmap.cpp +++ b/Userland/Libraries/LibGfx/Bitmap.cpp @@ -511,7 +511,7 @@ Optional<BackingStore> Bitmap::allocate_backing_store(BitmapFormat format, const if (purgeable == Purgeable::Yes) map_flags |= MAP_NORESERVE; #ifdef __serenity__ - void* data = mmap_with_name(nullptr, data_size_in_bytes, PROT_READ | PROT_WRITE, map_flags, 0, 0, String::format("GraphicsBitmap [%dx%d]", size.width(), size.height()).characters()); + void* data = mmap_with_name(nullptr, data_size_in_bytes, PROT_READ | PROT_WRITE, map_flags, 0, 0, String::formatted("GraphicsBitmap [{}]", size).characters()); #else void* data = mmap(nullptr, data_size_in_bytes, PROT_READ | PROT_WRITE, map_flags, 0, 0); #endif |