Commit da30a9d5 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

CallbackClosure: Ensure we're receiving the listener as a rvalue

parent f06f820e
......@@ -310,7 +310,7 @@ static void invokeEvent( NPP browser, NPObject* listener, Args&&... args )
class CallbackClosure
{
public:
CallbackClosure(NPP browser, npapi::Variant listener)
CallbackClosure(NPP browser, npapi::Variant&& listener)
: _browser( browser )
, _listener( std::move( listener ) )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment