mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibGfx: Convert String::format() => String::formatted()
This commit is contained in:
parent
d996e43df6
commit
e875d4e044
4 changed files with 5 additions and 7 deletions
|
@ -39,9 +39,7 @@ const Bitmap* Emoji::emoji_for_code_point(u32 code_point)
|
|||
if (it != s_emojis.end())
|
||||
return (*it).value.ptr();
|
||||
|
||||
String path = String::format("/res/emoji/U+%X.png", code_point);
|
||||
|
||||
auto bitmap = Bitmap::load_from_file(path);
|
||||
auto bitmap = Bitmap::load_from_file(String::formatted("/res/emoji/U+{:X}.png", code_point));
|
||||
if (!bitmap) {
|
||||
s_emojis.set(code_point, nullptr);
|
||||
return nullptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue