net: remove Sock default constructor, it's not necessary

This commit is contained in:
Vasil Dimov
2021-05-28 15:37:43 +02:00
parent 7829272f78
commit 5086a99b84
5 changed files with 14 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ BOOST_AUTO_TEST_CASE(move_assignment)
{
const SOCKET s = CreateSocket();
Sock* sock1 = new Sock(s);
Sock* sock2 = new Sock();
Sock* sock2 = new Sock(INVALID_SOCKET);
*sock2 = std::move(*sock1);
delete sock1;
BOOST_CHECK(!SocketIsClosed(s));
@@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE(send_and_receive)
SendAndRecvMessage(*sock0, *sock1);
Sock* sock0moved = new Sock(std::move(*sock0));
Sock* sock1moved = new Sock();
Sock* sock1moved = new Sock(INVALID_SOCKET);
*sock1moved = std::move(*sock1);
delete sock0;