[vlc-commits] utils: Variants: Mark storage policy move constructor as noexcept

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 26 16:24:32 CET 2016


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jan 26 16:23:17 2016 +0100| [cd72c202f9f9e32bc16a97c29fa5e3f9d33fb3d7] | committer: Hugo Beauzée-Luyssen

utils: Variants: Mark storage policy move constructor as noexcept

> https://code.videolan.org/videolan/npapi-vlc/commit/cd72c202f9f9e32bc16a97c29fa5e3f9d33fb3d7
---

 npapi/utils.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/npapi/utils.hpp b/npapi/utils.hpp
index 448d97d..2b6d20b 100644
--- a/npapi/utils.hpp
+++ b/npapi/utils.hpp
@@ -357,13 +357,13 @@ struct Embeded
         copyAndRetain( e.v );
     }
 
-    Embeded( Embeded&& e )
+    Embeded( Embeded&& e ) noexcept
     {
         v = e.v;
         memset( &e.v, 0, sizeof( e.v ) );
     }
 
-    Embeded& operator=(Embeded&& e)
+    Embeded& operator=(Embeded&& e) noexcept
     {
         release();
         v = e.v;
@@ -448,12 +448,12 @@ struct Wrapped
     Wrapped( const Wrapped& ) = delete;
     Wrapped& operator=( const Wrapped& ) = delete;
 
-    Wrapped(Wrapped&& w)
+    Wrapped(Wrapped&& w) noexcept
     {
         *this = std::move( w );
     }
 
-    Wrapped& operator=( Wrapped&& w )
+    Wrapped& operator=( Wrapped&& w ) noexcept
     {
         v = w.v;
         w.v = nullptr;



More information about the vlc-commits mailing list