mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-12 05:34:57 +01:00
net: remove Sock default constructor, it's not necessary
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user