[vlc-commits] utils: Add missing move assignment operator
    Hugo Beauzée-Luyssen 
    git at videolan.org
       
    Fri Apr  3 13:09:47 CEST 2015
    
    
  
npapi-vlc | branch: cleanup | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri Apr  3 12:10:38 2015 +0200| [66862ee21873fc26c31f98c1905beb45c33d10dc] | committer: Hugo Beauzée-Luyssen
utils: Add missing move assignment operator
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=66862ee21873fc26c31f98c1905beb45c33d10dc
---
 npapi/utils.hpp |    6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/npapi/utils.hpp b/npapi/utils.hpp
index 63cb3a9..4e840cf 100644
--- a/npapi/utils.hpp
+++ b/npapi/utils.hpp
@@ -354,8 +354,14 @@ struct Embeded
 
     Embeded( Embeded&& e )
     {
+        *this = std::move(e);
+    }
+
+    Embeded& operator=(Embeded&& e)
+    {
         v = e.v;
         memset( &e.v, 0, sizeof( e.v ) );
+        return *this;
     }
 
     Embeded( const NPVariant& npv )
    
    
More information about the vlc-commits
mailing list