IRCClient: Use new format functions.

This commit is contained in:
asynts
2020-10-06 14:16:35 +02:00
committed by Andreas Kling
parent d2ca7ca017
commit da9c995a8c
7 changed files with 35 additions and 29 deletions

View File

@@ -65,7 +65,7 @@ GUI::Variant IRCWindowListModel::data(const GUI::ModelIndex& index, GUI::ModelRo
case Column::Name: {
auto& window = m_client->window_at(index.row());
if (window.unread_count())
return String::format("%s (%d)", window.name().characters(), window.unread_count());
return String::formatted("{} ({})", window.name(), window.unread_count());
return window.name();
}
}