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-2017-g9c8308f
Date: Tue, 20 May 2014 10:18:36 +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  9c8308f86cee54f8042cbff53eb2c8c4d6c9bce0 (commit)
       via  ef8214406d60a55bbd01d877b1cce380c856f622 (commit)
       via  40259b767f99c363724b661fc06086a5eaa47dc6 (commit)
      from  713394d3c90b7a6217bccc96026af714b44ffd69 (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=9c8308f86cee54f8042cbff53eb2c8c4d6c9bce0


commit 9c8308f86cee54f8042cbff53eb2c8c4d6c9bce0
Author: Bastiaan Jacques <address@hidden>
Date:   Tue May 20 12:17:33 2014 +0200

    Add missing <cassert>.

diff --git a/cygnal/libamf/sol.h b/cygnal/libamf/sol.h
index 67c2f79..ca78e86 100644
--- a/cygnal/libamf/sol.h
+++ b/cygnal/libamf/sol.h
@@ -20,6 +20,7 @@
 #define GNASH_SOL_H
 
 #include <boost/cstdint.hpp>
+#include <cassert>
 #include <string>
 #include <vector>
 

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


commit ef8214406d60a55bbd01d877b1cce380c856f622
Author: Bastiaan Jacques <address@hidden>
Date:   Tue May 20 11:55:24 2014 +0200

    Replace boost::mem_fn with std::men_fn.

diff --git a/libcore/DisplayList.cpp b/libcore/DisplayList.cpp
index 80c33b2..65ae876 100644
--- a/libcore/DisplayList.cpp
+++ b/libcore/DisplayList.cpp
@@ -924,7 +924,7 @@ DisplayList::removeUnloaded()
 {
     testInvariant();
 
-    _charsByDepth.remove_if(boost::mem_fn(&DisplayObject::unloaded));
+    _charsByDepth.remove_if(std::mem_fn(&DisplayObject::unloaded));
 
     testInvariant();
 }
diff --git a/libcore/MovieClip.cpp b/libcore/MovieClip.cpp
index 59a6bfa..c38029c 100644
--- a/libcore/MovieClip.cpp
+++ b/libcore/MovieClip.cpp
@@ -1595,7 +1595,7 @@ MovieClip::cleanup_textfield_variables()
     {
         TextFields& v=i->second;
         TextFields::iterator lastValid = std::remove_if(v.begin(), v.end(),
-                    boost::mem_fn(&DisplayObject::unloaded));
+                    std::mem_fn(&DisplayObject::unloaded));
         v.erase(lastValid, v.end());
     }
 }
@@ -2034,7 +2034,7 @@ MovieClip::markOwnResources() const
 
             const TextFields& tfs=i->second;
             std::for_each(tfs.begin(), tfs.end(), 
-                        boost::mem_fn(&DisplayObject::setReachable));
+                        std::mem_fn(&DisplayObject::setReachable));
         }
     }
 
diff --git a/libcore/MovieLoader.cpp b/libcore/MovieLoader.cpp
index 34b8610..796e61a 100644
--- a/libcore/MovieLoader.cpp
+++ b/libcore/MovieLoader.cpp
@@ -494,7 +494,7 @@ MovieLoader::setReachable() const
 #endif
 
     std::for_each(_requests.begin(), _requests.end(),
-            boost::mem_fn(&Request::setReachable));
+            std::mem_fn(&Request::setReachable));
 
 #ifdef GNASH_DEBUG_LOCKING
     log_debug("setReachable: lock on requests: release");
diff --git a/libcore/PropertyList.h b/libcore/PropertyList.h
index a387e68..53f3681 100644
--- a/libcore/PropertyList.h
+++ b/libcore/PropertyList.h
@@ -295,7 +295,7 @@ public:
     /// compiler to optimize it.
     void setReachable() const {
         std::for_each(_props.begin(), _props.end(),
-                boost::mem_fn(&Property::setReachable));
+                std::mem_fn(&Property::setReachable));
     }
 
 private:
diff --git a/libcore/Video.cpp b/libcore/Video.cpp
index 9a4dbdd..d3295f4 100644
--- a/libcore/Video.cpp
+++ b/libcore/Video.cpp
@@ -183,7 +183,7 @@ Video::getVideoFrame()
 #endif
 
         const size_t frames = m_def->visitSlice(
-                std::bind(boost::mem_fn(&media::VideoDecoder::push),
+                std::bind(std::mem_fn(&media::VideoDecoder::push),
                     _decoder.get(), std::placeholders::_1),
                 from_frame, current_frame);
 
diff --git a/libcore/as_object.cpp b/libcore/as_object.cpp
index eb4ef0e..e2c02da 100644
--- a/libcore/as_object.cpp
+++ b/libcore/as_object.cpp
@@ -556,7 +556,7 @@ as_object::executeTriggers(Property* prop, const ObjectURI& 
uri,
     const as_value& newVal = trig.call(curVal, val, *this);
     
     // This is a particularly clear and concise way of removing dead triggers.
-    EraseIf(*_trigs, std::bind(boost::mem_fn(&Trigger::dead),
+    EraseIf(*_trigs, std::bind(std::mem_fn(&Trigger::dead),
              std::bind(&TriggerContainer::value_type::second,
              std::placeholders::_1)));
                     
diff --git a/libcore/asobj/NetConnection_as.cpp 
b/libcore/asobj/NetConnection_as.cpp
index 4c6608f..51e3149 100644
--- a/libcore/asobj/NetConnection_as.cpp
+++ b/libcore/asobj/NetConnection_as.cpp
@@ -29,7 +29,6 @@
 #include <memory>
 #include <boost/lexical_cast.hpp>
 #include <boost/noncopyable.hpp>
-#include <boost/mem_fn.hpp>
 #include <iomanip>
 
 #include "GnashSystemNetHeaders.h"
@@ -433,7 +432,7 @@ NetConnection_as::markReachableResources() const
 {
     owner().setReachable();
     std::for_each(_oldConnections.begin(), _oldConnections.end(),
-            boost::mem_fn(&Connection::setReachable));
+            std::mem_fn(&Connection::setReachable));
     if (_currentConnection.get()) _currentConnection->setReachable();
 }
 
diff --git a/libcore/asobj/XMLNode_as.cpp b/libcore/asobj/XMLNode_as.cpp
index ae14e50..281a065 100644
--- a/libcore/asobj/XMLNode_as.cpp
+++ b/libcore/asobj/XMLNode_as.cpp
@@ -490,7 +490,7 @@ XMLNode_as::setReachable()
 
        // Mark children
     std::for_each(_children.begin(), _children.end(),
-            boost::mem_fn(&XMLNode_as::setReachable));
+            std::mem_fn(&XMLNode_as::setReachable));
 
        // Mark attributes object
        if (_attributes) _attributes->setReachable();
diff --git a/libcore/movie_root.cpp b/libcore/movie_root.cpp
index b3b9598..7689bb6 100644
--- a/libcore/movie_root.cpp
+++ b/libcore/movie_root.cpp
@@ -126,7 +126,7 @@ void
 clear(movie_root::ActionQueue& aq)
 {
     std::for_each(aq.begin(), aq.end(), 
-            boost::mem_fn(&movie_root::ActionQueue::value_type::clear));
+            std::mem_fn(&movie_root::ActionQueue::value_type::clear));
 }
 
 } // anonymous namespace
diff --git a/libcore/swf/DefineButtonTag.cpp b/libcore/swf/DefineButtonTag.cpp
index 09eb9ba..aa216cd 100644
--- a/libcore/swf/DefineButtonTag.cpp
+++ b/libcore/swf/DefineButtonTag.cpp
@@ -251,7 +251,7 @@ bool
 DefineButtonTag::hasKeyPressHandler() const
 {
     return std::find_if(_buttonActions.begin(), _buttonActions.end(),
-            boost::mem_fn(&ButtonAction::triggeredByKeyPress)) !=
+            std::mem_fn(&ButtonAction::triggeredByKeyPress)) !=
             _buttonActions.end();
 }
 
diff --git a/libcore/swf/DefineButtonTag.h b/libcore/swf/DefineButtonTag.h
index 12004c0..17950fe 100644
--- a/libcore/swf/DefineButtonTag.h
+++ b/libcore/swf/DefineButtonTag.h
@@ -259,7 +259,7 @@ public:
     void visitKeyCodes(E& f) const {
         std::for_each(_buttonActions.begin(), _buttonActions.end(),
             std::bind(f, std::bind(
-                    boost::mem_fn(&ButtonAction::getKeyCode), 
std::placeholders::_1)));
+                    std::mem_fn(&ButtonAction::getKeyCode), 
std::placeholders::_1)));
     }
     
 private:

http://git.savannah.gnu.org/cgit//commit/?id=40259b767f99c363724b661fc06086a5eaa47dc6


commit 40259b767f99c363724b661fc06086a5eaa47dc6
Author: Bastiaan Jacques <address@hidden>
Date:   Tue May 20 11:45:57 2014 +0200

    C++11-ify Render_ogl.cpp.

diff --git a/librender/opengl/Renderer_ogl.cpp 
b/librender/opengl/Renderer_ogl.cpp
index c5d5003..40306a7 100644
--- a/librender/opengl/Renderer_ogl.cpp
+++ b/librender/opengl/Renderer_ogl.cpp
@@ -692,7 +692,7 @@ void
 for_each(C& container, R (T::*pmf)(const A&),const A& arg)
 {
     std::for_each(container.begin(), container.end(),
-                  std::bind(pmf, _1, std::ref(arg)));
+                  std::bind(pmf, std::placeholders::_1, std::ref(arg)));
 }
 
 
@@ -773,10 +773,10 @@ public:
                   *it++ = *(im->begin() + i);
                   if (!(i % 3)) *it++ = 0xff;
               }
-              im = rgba;
+              im = std::move(rgba);
           }
           case image::TYPE_RGBA:
-                return new bitmap_info_ogl(im, GL_RGBA, ogl_accessible());
+                return new bitmap_info_ogl(std::move(im), GL_RGBA, 
ogl_accessible());
           default:
                 std::abort();
       }
@@ -1184,7 +1184,7 @@ public:
 
     // Call add_paths for each mask.
     std::for_each(_masks.begin(), _masks.end(),
-      std::bind(&Renderer_ogl::add_paths, this, _1));
+      std::bind(&Renderer_ogl::add_paths, this, std::placeholders::_1));
           
     glStencilOp (GL_KEEP, GL_KEEP, GL_KEEP);
     glStencilFunc(GL_EQUAL, _masks.size(), _masks.size());
@@ -1634,7 +1634,8 @@ public:
   apply_matrix_to_paths(std::vector<Path>& paths, const SWFMatrix& mat)
   {  
     std::for_each(paths.begin(), paths.end(),
-                  std::bind(&Path::transform, _1, std::ref(mat)));
+                  std::bind(&Path::transform, std::placeholders::_1,
+                  std::ref(mat)));
                   
     //for_each(paths, &path::transform, mat);
   }  
@@ -1951,7 +1952,7 @@ createGradientBitmap(const GradientFill& gf, Renderer& 
renderer)
     }
 
     const CachedBitmap* bi = renderer.createCachedBitmap(
-                    static_cast<std::unique_ptr<image::GnashImage> >(im));
+                    static_cast<std::unique_ptr<image::GnashImage> 
>(std::move(im)));
 
     return bi;
 }

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

Summary of changes:
 cygnal/libamf/sol.h                |    1 +
 libcore/DisplayList.cpp            |    2 +-
 libcore/MovieClip.cpp              |    4 ++--
 libcore/MovieLoader.cpp            |    2 +-
 libcore/PropertyList.h             |    2 +-
 libcore/Video.cpp                  |    2 +-
 libcore/as_object.cpp              |    2 +-
 libcore/asobj/NetConnection_as.cpp |    3 +--
 libcore/asobj/XMLNode_as.cpp       |    2 +-
 libcore/movie_root.cpp             |    2 +-
 libcore/swf/DefineButtonTag.cpp    |    2 +-
 libcore/swf/DefineButtonTag.h      |    2 +-
 librender/opengl/Renderer_ogl.cpp  |   13 +++++++------
 13 files changed, 20 insertions(+), 19 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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