mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-21 15:01:16 -03:00
[cppcheck] add some std::move
Found with passedByValue Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
ridiculousfish
parent
c3cb44cd22
commit
39861d54c5
@@ -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().
|
||||
|
||||
Reference in New Issue
Block a user