From 236d393a55f306606fd2f0ac149fa7a0f4cfd8f2 Mon Sep 17 00:00:00 2001 From: Derek Argueta Date: Thu, 19 Dec 2019 07:08:24 -0800 Subject: [PATCH] misc: use std::move instead of constructing a copy (#9415) Signed-off-by: Derek Argueta Signed-off-by: Prakhar --- source/common/network/transport_socket_options_impl.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/common/network/transport_socket_options_impl.cc b/source/common/network/transport_socket_options_impl.cc index bd476a0afa7b..fed22159d00e 100644 --- a/source/common/network/transport_socket_options_impl.cc +++ b/source/common/network/transport_socket_options_impl.cc @@ -1,5 +1,10 @@ #include "common/network/transport_socket_options_impl.h" +#include +#include +#include +#include + #include "common/common/scalar_to_byte_vector.h" #include "common/common/utility.h" #include "common/network/application_protocol.h" @@ -40,7 +45,7 @@ TransportSocketOptionsUtility::fromFilterState(const StreamInfo::FilterState& fi if (needs_transport_socket_options) { return std::make_shared( - server_name, std::vector{}, std::vector{application_protocols}); + server_name, std::vector{}, std::move(application_protocols)); } else { return nullptr; }