Use move to initialize the body buffer (#148)

This commit is contained in:
Kan Tang 2020-05-29 00:18:54 +08:00 committed by GitHub
parent 39f7c37e90
commit 0b1eb288db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,9 +191,9 @@ namespace Azure { namespace Core { namespace Http {
HttpMethod httpMethod,
std::string const& url,
BodyStream* bodyStream,
std::vector<uint8_t> const& bodyBuffer)
std::vector<uint8_t> bodyBuffer)
: _method(std::move(httpMethod)), _url(parseUrl(url)), m_bodyStream(bodyStream),
m_bodyBuffer(bodyBuffer), m_retryModeEnabled(false)
m_bodyBuffer(std::move(bodyBuffer)), m_retryModeEnabled(false)
{
// TODO: parse url
}