Skip to content

Commit

Permalink
core: Add std to all move references (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrofenik authored Feb 14, 2024
1 parent 0dc2f7a commit 2eb7784
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sio_message.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ namespace sio
}

string_message(std::string&& v)
:message(flag_string),_v(move(v))
:message(flag_string),_v(std::move(v))
{
}
public:
Expand All @@ -215,7 +215,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
Expand Down Expand Up @@ -269,7 +269,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<std::string> const& binary)
Expand All @@ -296,7 +296,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<std::string> const& binary)
Expand Down Expand Up @@ -361,7 +361,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<std::string> const& binary)
Expand Down Expand Up @@ -461,7 +461,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<std::string> const& binary)
Expand Down Expand Up @@ -489,7 +489,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<std::string> const& binary)
Expand All @@ -516,7 +516,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<std::string> const& binary)
Expand Down

0 comments on commit 2eb7784

Please sign in to comment.