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:
parent
30b9dff5aa
commit
c776d76b71
5 changed files with 7 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue