1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 11:15:06 +00:00

HackStudio: Use new format functions.

This commit is contained in:
asynts 2020-10-08 13:41:36 +02:00 committed by Andreas Kling
parent 3b601cd4bd
commit 7c4fb2b804
23 changed files with 112 additions and 117 deletions

View file

@ -93,7 +93,7 @@ GUI::Variant WidgetTreeModel::data(const GUI::ModelIndex& index, GUI::ModelRole
return m_widget_icon;
}
if (role == GUI::ModelRole::Display) {
return String::format("%s (%s)", widget->class_name(), widget->relative_rect().to_string().characters());
return String::formatted("{} ({})", widget->class_name(), widget->relative_rect());
}
return {};
}