From 2ecc3861212d5ca48a3b227d7338754bc7e4d8a1 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 21 Dec 2019 12:40:06 -0800 Subject: [PATCH] [clang-tidy] Remove redundant c_str Found with readability-redundant-string-cstr --- src/reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader.cpp b/src/reader.cpp index a20163a99..b90d99ee7 100644 --- a/src/reader.cpp +++ b/src/reader.cpp @@ -2754,7 +2754,7 @@ void reader_data_t::handle_readline_command(readline_cmd_t c, readline_loop_stat if (abbreviation_expanded) { // It's our reponsibility to rehighlight and repaint. But everything we do // below triggers a repaint. - command_test_result = test_func(parser(), el->text.c_str()); + command_test_result = test_func(parser(), el->text); // If the command is OK, then we're going to execute it. We still want to do // syntax highlighting, but a synchronous variant that performs no I/O, so