npapi-vlc | branch: cleanup | Hugo Beauzée-Luyssen <[email protected]> | 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 ) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
