mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-24 18:40:42 +08:00
[clang-tidy] Remove redundant c_str
Found with readability-redundant-string-cstr
This commit is contained in:
parent
d1e82b59bb
commit
2ecc386121
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user