From 502d3f15a96a6ca6bc2756c67c63855375fcbbb1 Mon Sep 17 00:00:00 2001 From: JinmingHu Date: Thu, 4 Jun 2020 01:13:26 +0800 Subject: [PATCH] Use move to initialize the body buffer (#150) --- sdk/core/azure-core/inc/http/http.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/core/azure-core/inc/http/http.hpp b/sdk/core/azure-core/inc/http/http.hpp index 2c2ce9743..84872b5bf 100644 --- a/sdk/core/azure-core/inc/http/http.hpp +++ b/sdk/core/azure-core/inc/http/http.hpp @@ -211,8 +211,8 @@ namespace Azure { namespace Core { namespace Http { { } - Request(HttpMethod httpMethod, std::string const& url, std::vector const& bodyBuffer) - : Request(httpMethod, url, BodyStream::null, bodyBuffer) + Request(HttpMethod httpMethod, std::string const& url, std::vector bodyBuffer) + : Request(httpMethod, url, BodyStream::null, std::move(bodyBuffer)) { }