mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Everywhere: Use _{short_,}string to create Strings from literals
This commit is contained in:
@@ -61,9 +61,9 @@ ErrorOr<String> GridSize::to_string() const
|
||||
case Type::FlexibleLength:
|
||||
return String::formatted("{}fr", m_flexible_length);
|
||||
case Type::MaxContent:
|
||||
return String::from_utf8("max-content"sv);
|
||||
return "max-content"_string;
|
||||
case Type::MinContent:
|
||||
return String::from_utf8("min-content"sv);
|
||||
return "min-content"_string;
|
||||
}
|
||||
VERIFY_NOT_REACHED();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user