0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

Force CNetMessage::m_recv to use std::move

This commit is contained in:
Jonas Schnelli 2019-10-22 15:28:32 +02:00
parent efecb74677
commit b0e10ff4df
No known key found for this signature in database
GPG key ID: 1EB776BB03C7922D

View file

@ -624,7 +624,7 @@ public:
uint32_t m_raw_message_size = 0; // used wire size of the message (including header/checksum)
std::string m_command;
CNetMessage(const CDataStream& recv_in) : m_recv(std::move(recv_in)) {}
CNetMessage(CDataStream&& recv_in) : m_recv(std::move(recv_in)) {}
void SetVersion(int nVersionIn)
{