LibGUI: Use String::formatted() and String::number() more

This commit is contained in:
Andreas Kling 2021-01-03 14:51:17 +01:00
parent 5e157eaf37
commit f181ddb56a
Notes: sideshowbarker 2024-07-19 00:10:10 +09:00
9 changed files with 17 additions and 20 deletions

View file

@ -123,7 +123,7 @@ void FileSystemModel::Node::traverse_if_needed()
quick_sort(child_names);
for (auto& name : child_names) {
String child_path = String::format("%s/%s", full_path.characters(), name.characters());
String child_path = String::formatted("{}/{}", full_path, name);
auto child = adopt_own(*new Node(m_model));
bool ok = child->fetch_data(child_path, false);
if (!ok)