mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:14:58 +00:00
LibC: Convert remaining String::format() to formatted()/number()
This commit is contained in:
parent
ec91f8ad1d
commit
5b37c0a71a
4 changed files with 9 additions and 9 deletions
|
@ -144,8 +144,8 @@ static Vector<char> s_tgoto_buffer;
|
|||
char* tgoto([[maybe_unused]] const char* cap, [[maybe_unused]] int col, [[maybe_unused]] int row)
|
||||
{
|
||||
auto cap_str = String(cap);
|
||||
cap_str.replace("%p1%d", String::format("%d", col));
|
||||
cap_str.replace("%p2%d", String::format("%d", row));
|
||||
cap_str.replace("%p1%d", String::number(col));
|
||||
cap_str.replace("%p2%d", String::number(row));
|
||||
|
||||
s_tgoto_buffer.clear_with_capacity();
|
||||
s_tgoto_buffer.ensure_capacity(cap_str.length());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue