mirror of https://github.com/AxioDL/metaforce.git
Merge pull request #21 from lioncash/move
CVar: std::move listeners within addListener()
This commit is contained in:
commit
9725c12c52
|
@ -117,7 +117,7 @@ public:
|
|||
*/
|
||||
void lock();
|
||||
|
||||
void addListener(ListenerFunc func) { m_listeners.push_back(func); }
|
||||
void addListener(ListenerFunc func) { m_listeners.push_back(std::move(func)); }
|
||||
|
||||
private:
|
||||
void dispatch();
|
||||
|
|
Loading…
Reference in New Issue