gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Bastiaan Jacques
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2186-ge5c0813
Date: Thu, 26 Mar 2015 18:23:33 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  e5c08131abde15f7a1e048e35d1a9ff12b2acdaa (commit)
       via  8d0c529bf24c8d75bce90ab57e44454e81285dfd (commit)
       via  15478b5c43a2fe04fbf86b9733a47873d9b879d4 (commit)
      from  6675d736bf4d78e7ece0879b98d0b19accb9611d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=e5c08131abde15f7a1e048e35d1a9ff12b2acdaa


commit e5c08131abde15f7a1e048e35d1a9ff12b2acdaa
Author: Bastiaan Jacques <address@hidden>
Date:   Thu Mar 26 16:24:21 2015 +0100

    Build fix: adjust smart pointers to unique_ptr API.

diff --git a/libdevice/vaapi/VaapiContext.h b/libdevice/vaapi/VaapiContext.h
index 8d9de72..c49d48a 100644
--- a/libdevice/vaapi/VaapiContext.h
+++ b/libdevice/vaapi/VaapiContext.h
@@ -84,7 +84,7 @@ public:
     void releaseSurface(std::shared_ptr<VaapiSurface> surface);
 
     /// Set user data
-    void setData(std::unique_ptr<VaapiContextData> user_data) { _user_data = 
user_data; }
+    void setData(std::unique_ptr<VaapiContextData> user_data) { _user_data = 
std::move(user_data); }
 
     /// Get user data
     VaapiContextData *getData() const { return _user_data.get(); }
diff --git a/libdevice/vaapi/VaapiGlobalContext.cpp 
b/libdevice/vaapi/VaapiGlobalContext.cpp
index c19ed07..5127a27 100644
--- a/libdevice/vaapi/VaapiGlobalContext.cpp
+++ b/libdevice/vaapi/VaapiGlobalContext.cpp
@@ -33,7 +33,7 @@
 namespace gnash {
 
 VaapiGlobalContext::VaapiGlobalContext(std::unique_ptr<VaapiDisplay> display)
-    : _display(display)
+    : _display(std::move(display))
 {
     GNASH_REPORT_FUNCTION;
 
@@ -145,7 +145,7 @@ VaapiGlobalContext *VaapiGlobalContext::get()
             if (!dpy.get()) {
                 return NULL;
             }
-            vaapi_global_context.reset(new VaapiGlobalContext(dpy));
+            vaapi_global_context.reset(new VaapiGlobalContext(std::move(dpy)));
         }
         catch (...) {
             vaapi_set_is_enabled(false);

http://git.savannah.gnu.org/cgit//commit/?id=8d0c529bf24c8d75bce90ab57e44454e81285dfd


commit 8d0c529bf24c8d75bce90ab57e44454e81285dfd
Author: Bastiaan Jacques <address@hidden>
Date:   Thu Feb 5 23:12:31 2015 +0100

    Add missing include directive.

diff --git a/libcore/swf/SetTabIndexTag.cpp b/libcore/swf/SetTabIndexTag.cpp
index fda4f34..b2f5a30 100644
--- a/libcore/swf/SetTabIndexTag.cpp
+++ b/libcore/swf/SetTabIndexTag.cpp
@@ -24,6 +24,7 @@
 #include "MovieClip.h"
 #include "GnashNumeric.h"
 #include "RunResources.h"
+#include "utility.h" // UNUSED
 
 namespace gnash {
 namespace SWF {

http://git.savannah.gnu.org/cgit//commit/?id=15478b5c43a2fe04fbf86b9733a47873d9b879d4


commit 15478b5c43a2fe04fbf86b9733a47873d9b879d4
Author: Bastiaan Jacques <address@hidden>
Date:   Thu Feb 5 02:13:58 2015 +0100

    Tidy up: use a defaulted template argument instead of a dummy function 
argument for enable_if.

diff --git a/libcore/as_value.h b/libcore/as_value.h
index 22ac59a..1bf3c0a 100644
--- a/libcore/as_value.h
+++ b/libcore/as_value.h
@@ -26,7 +26,6 @@
 #include <type_traits>
 #include <cstdint>
 
-#include "utility.h" // for UNUSED
 #include "dsodefs.h" // for DSOTEXPORT
 #include "CharacterProxy.h"
 #include "GnashNumeric.h" // for isNaN
@@ -157,16 +156,14 @@ public:
     {}
     
     /// Construct a primitive Boolean value
-    template <typename T>
-    as_value(T val, typename std::enable_if<std::is_same<bool, 
T>::value>::type*
-             dummy = 0)
+    template <typename T, typename U =
+        typename std::enable_if<std::is_same<bool, T>::value>::type>
+    as_value(T val)
         :
         _type(BOOLEAN),
         _value(val)
-       {
-        UNUSED(dummy);
-       }
-    
+    {}
+
     /// Construct a primitive Number value
     as_value(double num)
         :

-----------------------------------------------------------------------

Summary of changes:
 libcore/as_value.h                     |   13 +++++--------
 libcore/swf/SetTabIndexTag.cpp         |    1 +
 libdevice/vaapi/VaapiContext.h         |    2 +-
 libdevice/vaapi/VaapiGlobalContext.cpp |    4 ++--
 4 files changed, 9 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]