summaryrefslogtreecommitdiff
path: root/Userland/Games/Minesweeper/Field.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-01-16 12:00:33 +0100
committerAndreas Kling <kling@serenityos.org>2021-01-16 14:52:04 +0100
commitc71807a3fc592ab1d2d59c157e122a1b4030cd46 (patch)
tree3cacfa51d521be5f1fbe17f880391dd7ec42b0fe /Userland/Games/Minesweeper/Field.cpp
parentc90b7881a7313a9b36c7069769b5489c3be4f014 (diff)
downloadserenity-c71807a3fc592ab1d2d59c157e122a1b4030cd46.zip
Everywhere: Convert a handful of String::format() => formatted()
Diffstat (limited to 'Userland/Games/Minesweeper/Field.cpp')
-rw-r--r--Userland/Games/Minesweeper/Field.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Games/Minesweeper/Field.cpp b/Userland/Games/Minesweeper/Field.cpp
index 351a900094..2bec8dcc27 100644
--- a/Userland/Games/Minesweeper/Field.cpp
+++ b/Userland/Games/Minesweeper/Field.cpp
@@ -142,7 +142,7 @@ Field::Field(GUI::Label& flag_label, GUI::Label& time_label, GUI::Button& face_b
m_good_face_bitmap = Gfx::Bitmap::load_from_file("/res/icons/minesweeper/face-good.png");
m_bad_face_bitmap = Gfx::Bitmap::load_from_file("/res/icons/minesweeper/face-bad.png");
for (int i = 0; i < 8; ++i)
- m_number_bitmap[i] = Gfx::Bitmap::load_from_file(String::format("/res/icons/minesweeper/%u.png", i + 1));
+ m_number_bitmap[i] = Gfx::Bitmap::load_from_file(String::formatted("/res/icons/minesweeper/{}.png", i + 1));
set_fill_with_background_color(true);
reset();