From 14b58efc795bc1d5079f79d7e0d9d0082b6b538a Mon Sep 17 00:00:00 2001 From: Takatoshi Kondo Date: Fri, 27 Oct 2017 18:21:46 +0900 Subject: [PATCH] Fix redundant std::move(). (#49) This commit removes the following warnings. redisclient/src/redisclient/impl/redisclientimpl.cpp:263:24: warning: moving a temporary object prevents copy elision [-Wpessimizing-move] data.push_back(std::move(makeCommand(command))); ^ --- src/redisclient/impl/redisclientimpl.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/redisclient/impl/redisclientimpl.cpp b/src/redisclient/impl/redisclientimpl.cpp index 40232eb..70442f1 100644 --- a/src/redisclient/impl/redisclientimpl.cpp +++ b/src/redisclient/impl/redisclientimpl.cpp @@ -260,7 +260,7 @@ RedisValue RedisClientImpl::doSyncCommand(const std::deque handler) {