diff --git a/src/client.cc b/src/client.cc index 75a7738..8859643 100644 --- a/src/client.cc +++ b/src/client.cc @@ -76,7 +76,7 @@ Client::~Client() {} cpr::Response Client::performRequest( HTTPMethod method, const std::string &urlPath, const std::string &body) { - return std::move(impl->performRequest(method, urlPath, body)); + return impl->performRequest(method, urlPath, body); } @@ -168,7 +168,7 @@ cpr::Response Client::search(const std::string &indexName, fillIndexAndTypeInUrlPath(indexName, false, docType, false, urlPath); urlPath << "_search"; fillRoutingInUrlPath(routing, urlPath); - return std::move(impl->performRequest(HTTPMethod::POST, urlPath.str(), body)); + return impl->performRequest(HTTPMethod::POST, urlPath.str(), body); } @@ -184,7 +184,7 @@ cpr::Response Client::get(const std::string &indexName, } urlPath << id; fillRoutingInUrlPath(routing, urlPath); - return std::move(impl->performRequest(HTTPMethod::GET, urlPath.str())); + return impl->performRequest(HTTPMethod::GET, urlPath.str()); } @@ -200,7 +200,7 @@ cpr::Response Client::index(const std::string &indexName, urlPath << id; } fillRoutingInUrlPath(routing, urlPath); - return std::move(impl->performRequest(HTTPMethod::POST, urlPath.str(), body)); + return impl->performRequest(HTTPMethod::POST, urlPath.str(), body); } @@ -216,7 +216,7 @@ cpr::Response Client::remove(const std::string &indexName, } urlPath << id; fillRoutingInUrlPath(routing, urlPath); - return std::move(impl->performRequest(HTTPMethod::DELETE, urlPath.str())); + return impl->performRequest(HTTPMethod::DELETE, urlPath.str()); }