[vlc-commits] CallbackClosure: Ensure we're receiving the listener as a rvalue
Hugo Beauzée-Luyssen
git at videolan.org
Tue Jan 26 16:24:29 CET 2016
npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jan 26 16:02:01 2016 +0100| [da30a9d5cfa67fec6b2e941dfc4fddcf34a277d1] | committer: Hugo Beauzée-Luyssen
CallbackClosure: Ensure we're receiving the listener as a rvalue
> https://code.videolan.org/videolan/npapi-vlc/commit/da30a9d5cfa67fec6b2e941dfc4fddcf34a277d1
---
npapi/vlcplugin_base.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
index fb8aa73..5160826 100644
--- a/npapi/vlcplugin_base.cpp
+++ b/npapi/vlcplugin_base.cpp
@@ -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 ) )
{
More information about the vlc-commits
mailing list