event/ServerSocket: use C++11 initializer
This commit is contained in:
parent
daffefdb10
commit
413ab80295
|
@ -198,7 +198,7 @@ OneServerSocket::Open()
|
||||||
}
|
}
|
||||||
|
|
||||||
ServerSocket::ServerSocket(EventLoop &_loop) noexcept
|
ServerSocket::ServerSocket(EventLoop &_loop) noexcept
|
||||||
:loop(_loop), next_serial(1) {}
|
:loop(_loop) {}
|
||||||
|
|
||||||
/* this is just here to allow the OneServerSocket forward
|
/* this is just here to allow the OneServerSocket forward
|
||||||
declaration */
|
declaration */
|
||||||
|
|
|
@ -39,7 +39,7 @@ class ServerSocket {
|
||||||
|
|
||||||
std::list<OneServerSocket> sockets;
|
std::list<OneServerSocket> sockets;
|
||||||
|
|
||||||
unsigned next_serial;
|
unsigned next_serial = 1;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ServerSocket(EventLoop &_loop) noexcept;
|
ServerSocket(EventLoop &_loop) noexcept;
|
||||||
|
|
Loading…
Reference in New Issue