[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

@@ -39,7 +39,7 @@ static int wait_on_escape_ms = WAIT_ON_ESCAPE_DEFAULT;
/// Callback function for handling interrupts on reading.
static interrupt_func_t interrupt_handler;
void input_common_init(interrupt_func_t func) { interrupt_handler = func; }
void input_common_init(interrupt_func_t func) { interrupt_handler = std::move(func); }
/// Internal function used by input_common_readch to read one byte from fd 0. This function should
/// only be called by input_common_readch().