1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 13:55:00 +00:00

LibWeb: Convert a bunch of String::format() => String::formatted()

This commit is contained in:
Andreas Kling 2021-01-03 14:05:46 +01:00
parent bd57fff6d4
commit 5e157eaf37
7 changed files with 10 additions and 13 deletions

View file

@ -130,7 +130,7 @@ GUI::Variant DOMTreeModel::data(const GUI::ModelIndex& index, GUI::ModelRole rol
}
if (role == GUI::ModelRole::Display) {
if (node.is_text())
return String::format("%s", with_whitespace_collapsed(downcast<DOM::Text>(node).data()).characters());
return with_whitespace_collapsed(downcast<DOM::Text>(node).data());
if (!node.is_element())
return node.node_name();
auto& element = downcast<DOM::Element>(node);