mirror of
https://github.com/RGBCube/serenity
synced 2025-07-19 02:07:36 +00:00
LibWeb: Convert a bunch of String::format() => String::formatted()
This commit is contained in:
parent
bd57fff6d4
commit
5e157eaf37
7 changed files with 10 additions and 13 deletions
|
@ -128,7 +128,7 @@ GUI::Variant LayoutTreeModel::data(const GUI::ModelIndex& index, GUI::ModelRole
|
|||
}
|
||||
if (role == GUI::ModelRole::Display) {
|
||||
if (is<Layout::TextNode>(node))
|
||||
return String::format("TextNode: %s", with_whitespace_collapsed(downcast<Layout::TextNode>(node).text_for_rendering()).characters());
|
||||
return String::formatted("TextNode: {}", with_whitespace_collapsed(downcast<Layout::TextNode>(node).text_for_rendering()));
|
||||
StringBuilder builder;
|
||||
builder.append(node.class_name());
|
||||
builder.append(' ');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue