diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2021-12-01 20:22:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 20:22:33 +0100 |
commit | 57a59ae92d4bbfa4fdd60d7acd72c6440f63a49c (patch) | |
tree | 6efa0044d48f5e241540b412ef4c7fe63edec570 /src/client | |
parent | 1dc1305ada07da8c2a278b46a34d58af86184af9 (diff) | |
download | minetest-57a59ae92d4bbfa4fdd60d7acd72c6440f63a49c.tar.gz minetest-57a59ae92d4bbfa4fdd60d7acd72c6440f63a49c.tar.bz2 minetest-57a59ae92d4bbfa4fdd60d7acd72c6440f63a49c.zip |
Network: Delete copy constructor and use std::move instead (#11642)
This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/client.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp index 45cc62a33..3ee1298ff 100644 --- a/src/client/client.cpp +++ b/src/client/client.cpp @@ -877,7 +877,7 @@ void Client::ProcessData(NetworkPacket *pkt) */ if(sender_peer_id != PEER_ID_SERVER) { infostream << "Client::ProcessData(): Discarding data not " - "coming from server: peer_id=" << sender_peer_id + "coming from server: peer_id=" << sender_peer_id << " command=" << pkt->getCommand() << std::endl; return; } |