mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:58:11 +00:00
LibCore: Convert String::format() => String::formatted()
This commit is contained in:
parent
3a891abc37
commit
f4a15c8d42
2 changed files with 3 additions and 3 deletions
|
@ -53,8 +53,8 @@ public:
|
||||||
String name_for_display() const
|
String name_for_display() const
|
||||||
{
|
{
|
||||||
if (long_name)
|
if (long_name)
|
||||||
return String::format("--%s", long_name);
|
return String::formatted("--{}", long_name);
|
||||||
return String::format("-%c", short_name);
|
return String::formatted("-{:c}", short_name);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -74,7 +74,7 @@ public:
|
||||||
{
|
{
|
||||||
switch (m_type) {
|
switch (m_type) {
|
||||||
case Type::IPv4:
|
case Type::IPv4:
|
||||||
return String::format("%s:%d", m_ipv4_address.to_string().characters(), m_port);
|
return String::formatted("{}:{}", m_ipv4_address, m_port);
|
||||||
case Type::Local:
|
case Type::Local:
|
||||||
return m_local_address;
|
return m_local_address;
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue