[cppcheck] add some std::move

Found with passedByValue

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-03-13 13:45:41 -07:00
committed by ridiculousfish
parent c3cb44cd22
commit 39861d54c5
6 changed files with 8 additions and 8 deletions

View File

@@ -2324,10 +2324,10 @@ void reader_set_expand_abbreviations(bool flag) { current_data()->expand_abbrevi
void reader_set_complete_ok(bool flag) { current_data()->complete_ok = flag; }
void reader_set_highlight_function(highlight_function_t func) {
current_data()->highlight_func = func;
current_data()->highlight_func = std::move(func);
}
void reader_set_test_function(test_function_t f) { current_data()->test_func = f; }
void reader_set_test_function(test_function_t f) { current_data()->test_func = std::move(f); }
void reader_set_exit_on_interrupt(bool i) { current_data()->exit_on_interrupt = i; }