]> git.lizzy.rs Git - minetest.git/commit
Network: Delete copy constructor and use std::move instead (#11642)
authorSmallJoker <SmallJoker@users.noreply.github.com>
Wed, 1 Dec 2021 19:22:33 +0000 (20:22 +0100)
committerGitHub <noreply@github.com>
Wed, 1 Dec 2021 19:22:33 +0000 (20:22 +0100)
commit57a59ae92d4bbfa4fdd60d7acd72c6440f63a49c
tree6efa0044d48f5e241540b412ef4c7fe63edec570
parent1dc1305ada07da8c2a278b46a34d58af86184af9
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.
src/client/client.cpp
src/network/connection.cpp
src/network/connection.h
src/network/connectionthreads.cpp
src/network/connectionthreads.h
src/unittest/test_connection.cpp
src/util/pointer.h