Help: Use new format functions.

This commit is contained in:
asynts 2020-10-05 18:05:35 +02:00 committed by Andreas Kling
parent 30b9dff5aa
commit c776d76b71
Notes: sideshowbarker 2024-07-19 02:01:23 +09:00
5 changed files with 7 additions and 7 deletions

View file

@ -107,7 +107,7 @@ String ManualModel::page_and_section(const GUI::ModelIndex& index) const
return {};
auto* page = static_cast<const ManualPageNode*>(node);
auto* section = static_cast<const ManualSectionNode*>(page->parent());
return String::format("%s(%s)", page->name().characters(), section->section_name().characters());
return String::formatted("{}({})", page->name(), section->section_name());
}
GUI::ModelIndex ManualModel::index(int row, int column, const GUI::ModelIndex& parent_index) const