From 5c6c58ae22cee20d2ba8d4daa077585b5427e06d Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 2 Sep 2021 21:19:21 +1000 Subject: [PATCH] Remove unnecessary c_str() calls --- src/terminal_ui.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/terminal_ui.cc b/src/terminal_ui.cc index 8f635093..58d786c9 100644 --- a/src/terminal_ui.cc +++ b/src/terminal_ui.cc @@ -337,14 +337,14 @@ void TerminalUI::Screen::output(bool force, bool synchronized, Writer& writer) pending_move = 0; } set_face(face, writer); - writer.write(text.c_str()); + writer.write(text); if (skip > 3 and face.attributes == Attribute{}) { writer.write("\033[K"); pending_move = skip; } else if (skip > 0) - writer.write(String{' ', skip}.c_str()); + writer.write(String{' ', skip}); } } }