IRCClient: Use new format functions.

This commit is contained in:
asynts 2020-10-06 14:16:35 +02:00 committed by Andreas Kling
commit da9c995a8c
Notes: sideshowbarker 2024-07-19 02:01:06 +09:00
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();
}
}