From c1967fca0dd0dd78143f8505cbb48b1836481a47 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 7 May 2021 20:47:40 +0200 Subject: LibLine: Convert StringBuilder::appendf() => AK::Format --- Userland/Libraries/LibLine/Editor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Userland/Libraries/LibLine') diff --git a/Userland/Libraries/LibLine/Editor.cpp b/Userland/Libraries/LibLine/Editor.cpp index 36dcffae4d..9a59d611cc 100644 --- a/Userland/Libraries/LibLine/Editor.cpp +++ b/Userland/Libraries/LibLine/Editor.cpp @@ -1506,7 +1506,7 @@ String Style::to_string() const if (m_foreground.m_is_rgb) { builder.join(", ", m_foreground.m_rgb_color); } else { - builder.appendf("(XtermColor) %d", (int)m_foreground.m_xterm_color); + builder.appendff("(XtermColor) {}", (int)m_foreground.m_xterm_color); } builder.append("), "); } @@ -1516,7 +1516,7 @@ String Style::to_string() const if (m_background.m_is_rgb) { builder.join(' ', m_background.m_rgb_color); } else { - builder.appendf("(XtermColor) %d", (int)m_background.m_xterm_color); + builder.appendff("(XtermColor) {}", (int)m_background.m_xterm_color); } builder.append("), "); } @@ -1531,7 +1531,7 @@ String Style::to_string() const builder.append("Italic, "); if (!m_hyperlink.is_empty()) - builder.appendf("Hyperlink(\"%s\"), ", m_hyperlink.m_link.characters()); + builder.appendff("Hyperlink(\"{}\"), ", m_hyperlink.m_link); builder.append("}"); -- cgit v1.2.3