move std function
This commit is contained in:
@@ -204,7 +204,7 @@ public:
|
||||
|
||||
//! \~english Sets the callback receiving both key event and user data.
|
||||
//! \~russian Устанавливает обратный вызов, получающий событие клавиши и пользовательские данные.
|
||||
void setSlot(KBFunc slot) { ret_func = slot; }
|
||||
void setSlot(KBFunc slot) { ret_func = std::move(slot); }
|
||||
|
||||
//! \~english Sets the callback that only receives the key event and ignores user data.
|
||||
//! \~russian Устанавливает обратный вызов, получающий только событие клавиши и игнорирующий пользовательские данные.
|
||||
|
||||
Reference in New Issue
Block a user