mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-28 23:39:02 +00:00
Help: Use new format functions.
This commit is contained in:
parent
30b9dff5aa
commit
c776d76b71
Notes:
sideshowbarker
2024-07-19 02:01:23 +09:00
Author: https://github.com/asynts
Commit: c776d76b71
Pull-request: https://github.com/SerenityOS/serenity/pull/3696
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/emanuele6
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