mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27: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:
parent
099b83fd28
commit
6d97b623cd
9 changed files with 10 additions and 10 deletions
|
@ -34,7 +34,7 @@ String generate_only_additions(const String& text)
|
|||
{
|
||||
auto lines = text.split('\n', true); // Keep empty
|
||||
StringBuilder builder;
|
||||
builder.appendf("@@ -1,%zu +1,%zu @@\n", lines.size());
|
||||
builder.appendf("@@ -0,0 +1,%zu @@\n", lines.size());
|
||||
for (const auto& line : lines) {
|
||||
builder.appendf("+%s\n", line.characters());
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace Gfx {
|
|||
|
||||
String Triangle::to_string() const
|
||||
{
|
||||
return String::format("({},{},{})", m_a, m_b, m_c);
|
||||
return String::formatted("({},{},{})", m_a, m_b, m_c);
|
||||
}
|
||||
|
||||
const LogStream& operator<<(const LogStream& stream, const Triangle& value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue