[clang-tidy] Remove redundant c_str

Found with readability-redundant-string-cstr
This commit is contained in:
Rosen Penev 2019-12-21 12:40:06 -08:00
parent d1e82b59bb
commit 2ecc386121
No known key found for this signature in database
GPG Key ID: 36D31CFA845F0E3B

View File

@ -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