Skip to content

Commit

Permalink
Merge branch 'copy-elision'
Browse files Browse the repository at this point in the history
  • Loading branch information
johniez committed Jul 10, 2019
2 parents 3adb172 + 8d927ca commit 2b6fca2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down Expand Up @@ -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);
}


Expand All @@ -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());
}


Expand All @@ -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);
}


Expand All @@ -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());
}


Expand Down

0 comments on commit 2b6fca2

Please sign in to comment.