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-2287-gdf95d2d
Date: Wed, 20 Jul 2016 19:35:44 +0000 (UTC)

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  df95d2dd4c121ece9663f26f91e3945dd9469de3 (commit)
      from  889485d16a2ddca73bffb4622f0e9360a0267e5d (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=df95d2dd4c121ece9663f26f91e3945dd9469de3


commit df95d2dd4c121ece9663f26f91e3945dd9469de3
Author: Bastiaan Jacques <address@hidden>
Date:   Tue Jul 19 19:08:52 2016 +0200

    Drop a few more moves preventing copy elision.

diff --git a/libbase/StreamProvider.cpp b/libbase/StreamProvider.cpp
index 8700bc8..15799c0 100644
--- a/libbase/StreamProvider.cpp
+++ b/libbase/StreamProvider.cpp
@@ -81,7 +81,7 @@ StreamProvider::getStream(const URL& url, bool 
namedCacheFile) const
                        FILE *newin = fdopen(fd, "rb");
 
                        // Close on destruction.
-                       stream = std::move(makeFileChannel(newin, true));
+                       stream = makeFileChannel(newin, true);
                        return stream;
                }
                else {
@@ -95,14 +95,14 @@ StreamProvider::getStream(const URL& url, bool 
namedCacheFile) const
                                return stream;
                        }
                        // Close on destruction
-                       stream = std::move(makeFileChannel(newin, true));
+                       stream = makeFileChannel(newin, true);
                        return stream;
                }
        }
        else {
                if (allow(url)) {
-                       stream = 
std::move(NetworkAdapter::makeStream(url.str(), 
-                    namedCacheFile ? namingPolicy()(url) : ""));
+                       stream = NetworkAdapter::makeStream(url.str(), 
+                    namedCacheFile ? namingPolicy()(url) : "");
                }
 
         // Will return 0 unique_ptr if not allowed.
diff --git a/libcore/parser/SWFMovieDefinition.cpp 
b/libcore/parser/SWFMovieDefinition.cpp
index 442e51e..5c64fd3 100644
--- a/libcore/parser/SWFMovieDefinition.cpp
+++ b/libcore/parser/SWFMovieDefinition.cpp
@@ -284,7 +284,7 @@ SWFMovieDefinition::readHeader(std::unique_ptr<IOChannel> 
in,
         );
 
         // Uncompress the input as we read it.
-        _in = std::move(zlib_adapter::make_inflater(std::move(_in)));
+        _in = zlib_adapter::make_inflater(std::move(_in));
 #endif
     }
 

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

Summary of changes:
 libbase/StreamProvider.cpp            |    8 ++++----
 libcore/parser/SWFMovieDefinition.cpp |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

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