Merge pull request #21 from lioncash/move

CVar: std::move listeners within addListener()
This commit is contained in:
Phillip Stephens 2019-08-24 14:43:47 -07:00 committed by GitHub
commit 9725c12c52
1 changed files with 1 additions and 1 deletions

View File

@ -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();