event/WinSelect: pass const reference to copy constructor

This commit is contained in:
Max Kellermann 2018-01-29 22:03:20 +01:00
parent 497e0669ff
commit ea402b765c

View File

@ -43,7 +43,7 @@ class SocketSet
fd_set set;
public:
SocketSet() { set.fd_count = 0; }
SocketSet(SocketSet &other) {
SocketSet(const SocketSet &other) noexcept {
set.fd_count = other.set.fd_count;
memcpy(set.fd_array,
other.set.fd_array,