diff --git a/src/XrdEc/XrdEcStrmWriter.hh b/src/XrdEc/XrdEcStrmWriter.hh index f0d72a4d43d..a8f26c01f84 100644 --- a/src/XrdEc/XrdEcStrmWriter.hh +++ b/src/XrdEc/XrdEcStrmWriter.hh @@ -238,7 +238,7 @@ namespace XrdEc { std::future ftr = buffers.dequeue(); std::unique_ptr result( ftr.get() ); - return std::move( result ); + return result; } //----------------------------------------------------------------------- diff --git a/src/XrdEc/XrdEcThreadPool.hh b/src/XrdEc/XrdEcThreadPool.hh index 8ed68a981f0..0b77b0638cf 100644 --- a/src/XrdEc/XrdEcThreadPool.hh +++ b/src/XrdEc/XrdEcThreadPool.hh @@ -164,7 +164,7 @@ namespace XrdEc AnyJob *job = new AnyJob( func, std::move( args )... ); std::future ftr = job->GetFuture(); threadpool.QueueJob( job, nullptr ); - return std::move( ftr ); + return ftr; } private: diff --git a/src/XrdEc/XrdEcUtilities.hh b/src/XrdEc/XrdEcUtilities.hh index d6fa921175c..a58d3c988f8 100644 --- a/src/XrdEc/XrdEcUtilities.hh +++ b/src/XrdEc/XrdEcUtilities.hh @@ -203,7 +203,7 @@ namespace XrdEc } Element element = std::move( elements.front() ); elements.pop(); - return std::move( element ); + return element; } //------------------------------------------------------------------------- diff --git a/src/XrdEc/XrdEcWrtBuff.hh b/src/XrdEc/XrdEcWrtBuff.hh index 37b009ecd0e..f62bfe9daa7 100644 --- a/src/XrdEc/XrdEcWrtBuff.hh +++ b/src/XrdEc/XrdEcWrtBuff.hh @@ -71,7 +71,7 @@ namespace XrdEc { XrdCl::Buffer buffer( std::move( pool.front() ) ); pool.pop(); - return std::move( buffer ); + return buffer; } //--------------------------------------------------------------------- // Check if we can create a new buffer object without exceeding the @@ -81,7 +81,7 @@ namespace XrdEc { XrdCl::Buffer buffer( objcfg.blksize ); ++currentsize; - return std::move( buffer ); + return buffer; } //--------------------------------------------------------------------- // If not, we have to wait until there is a buffer we can recycle @@ -89,7 +89,7 @@ namespace XrdEc while( pool.empty() ) cv.wait( lck ); XrdCl::Buffer buffer( std::move( pool.front() ) ); pool.pop(); - return std::move( buffer ); + return buffer; } //-----------------------------------------------------------------------