1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:27:34 +00:00

LibGfx: Convert String::format() => String::formatted()

This commit is contained in:
Andreas Kling 2021-04-21 21:11:16 +02:00
parent d996e43df6
commit e875d4e044
4 changed files with 5 additions and 7 deletions

View file

@ -40,12 +40,12 @@ namespace Gfx {
String Color::to_string() const
{
return String::format("#%02x%02x%02x%02x", red(), green(), blue(), alpha());
return String::formatted("#{:02x}{:02x}{:02x}{:02x}", red(), green(), blue(), alpha());
}
String Color::to_string_without_alpha() const
{
return String::format("#%02x%02x%02x", red(), green(), blue());
return String::formatted("#{:02x}{:02x}{:02x}", red(), green(), blue());
}
static Optional<Color> parse_rgb_color(const StringView& string)