Use move to initialize the body buffer (#150)

This commit is contained in:
JinmingHu 2020-06-04 01:13:26 +08:00 committed by GitHub
parent 711fe5f8c6
commit 502d3f15a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -211,8 +211,8 @@ namespace Azure { namespace Core { namespace Http {
{
}
Request(HttpMethod httpMethod, std::string const& url, std::vector<uint8_t> const& bodyBuffer)
: Request(httpMethod, url, BodyStream::null, bodyBuffer)
Request(HttpMethod httpMethod, std::string const& url, std::vector<uint8_t> bodyBuffer)
: Request(httpMethod, url, BodyStream::null, std::move(bodyBuffer))
{
}