From 0bee0db518ac5a9cdfab30567254974e2bae6093 Mon Sep 17 00:00:00 2001 From: Manuel Otheo Date: Sun, 28 May 2023 11:53:16 -0600 Subject: [PATCH] added missing std::move --- .../Private/internal/sio_client_impl.cpp | 2 +- Source/SocketIOLib/Public/sio_message.h | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/SocketIOLib/Private/internal/sio_client_impl.cpp b/Source/SocketIOLib/Private/internal/sio_client_impl.cpp index 06cf3498..e73efe9b 100644 --- a/Source/SocketIOLib/Private/internal/sio_client_impl.cpp +++ b/Source/SocketIOLib/Private/internal/sio_client_impl.cpp @@ -129,7 +129,7 @@ namespace sio string query_str_value = encode_query_string(it->second); query_str.append(query_str_value); } - m_query_string = move(query_str); + m_query_string = std::move(query_str); m_http_headers = headers; m_auth = auth; diff --git a/Source/SocketIOLib/Public/sio_message.h b/Source/SocketIOLib/Public/sio_message.h index 53dc2202..9502712b 100644 --- a/Source/SocketIOLib/Public/sio_message.h +++ b/Source/SocketIOLib/Public/sio_message.h @@ -205,7 +205,7 @@ namespace sio } string_message(std::string&& v) - :message(flag_string),_v(move(v)) + :message(flag_string),_v(std::move(v)) { } public: @@ -216,7 +216,7 @@ namespace sio static message::ptr create(std::string&& v) { - return ptr(new string_message(move(v))); + return ptr(new string_message(std::move(v))); } std::string const& get_string() const @@ -270,7 +270,7 @@ namespace sio void push(std::string&& text) { - _v.push_back(string_message::create(move(text))); + _v.push_back(string_message::create(std::move(text))); } void push(std::shared_ptr const& binary) @@ -297,7 +297,7 @@ namespace sio void insert(size_t pos,std::string&& text) { - _v.insert(_v.begin()+pos, string_message::create(move(text))); + _v.insert(_v.begin()+pos, string_message::create(std::move(text))); } void insert(size_t pos,std::shared_ptr const& binary) @@ -362,7 +362,7 @@ namespace sio void insert(const std::string & key,std::string&& text) { - _v[key] = string_message::create(move(text)); + _v[key] = string_message::create(std::move(text)); } void insert(const std::string & key,std::shared_ptr const& binary) @@ -462,7 +462,7 @@ namespace sio list(std::string&& text) { - m_vector.push_back(string_message::create(move(text))); + m_vector.push_back(string_message::create(std::move(text))); } list(std::shared_ptr const& binary) @@ -490,7 +490,7 @@ namespace sio void push(std::string&& text) { - m_vector.push_back(string_message::create(move(text))); + m_vector.push_back(string_message::create(std::move(text))); } void push(std::shared_ptr const& binary) @@ -517,7 +517,7 @@ namespace sio void insert(size_t pos,std::string&& text) { - m_vector.insert(m_vector.begin()+pos, string_message::create(move(text))); + m_vector.insert(m_vector.begin()+pos, string_message::create(std::move(text))); } void insert(size_t pos,std::shared_ptr const& binary)