aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2019-10-22 15:28:32 +0200
committerJonas Schnelli <dev@jonasschnelli.ch>2019-10-22 15:28:32 +0200
commitb0e10ff4df3d4c70fb172ea8c3128c82e6e368bb (patch)
tree9a57c2dcaa00f8e21d3ec9ca9840c87b469efc04 /src/net.h
parentefecb74677222f6c70adf7f860c315f430d39ec4 (diff)
Force CNetMessage::m_recv to use std::move
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 16435a3aa1..6122508471 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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)
{