1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-04 11:27:35 +00:00

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
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