mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-27 02:47:27 +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:
committed by
Andreas Kling
parent
009c753a12
commit
099b83fd28
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user