1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

Everywhere: Fix incorrect uses of String::format and StringBuilder::appendf

These changes are arbitrarily divided into multiple commits to make it
easier to find potentially introduced bugs with git bisect.
This commit is contained in:
Sahan Fernando 2021-01-12 00:30:22 +11:00 committed by Andreas Kling
parent 009c753a12
commit 099b83fd28
6 changed files with 13 additions and 13 deletions

View file

@ -211,7 +211,7 @@ Vector<Command> Node::to_lazy_evaluated_commands(RefPtr<Shell> shell)
void Node::dump(int level) const
{
print_indented(String::format("%s at %d:%d (from %d.%d to %d.%d)",
print_indented(String::formatted("{} at {}:{} (from {}.{} to {}.{})",
class_name().characters(),
m_position.start_offset,
m_position.end_offset,
@ -1591,9 +1591,9 @@ Join::~Join()
void MatchExpr::dump(int level) const
{
Node::dump(level);
print_indented(String::format("(expression)", m_expr_name.characters()), level + 1);
print_indented(String::formatted("(expression: {})", m_expr_name.characters()), level + 1);
m_matched_expr->dump(level + 2);
print_indented(String::format("(named: %s)", m_expr_name.characters()), level + 1);
print_indented(String::formatted("(named: {})", m_expr_name.characters()), level + 1);
print_indented("(entries)", level + 1);
for (auto& entry : m_entries) {
StringBuilder builder;