event/ServerSocket: use C++11 initializer

This commit is contained in:
Max Kellermann 2018-10-30 20:11:58 +01:00
parent daffefdb10
commit 413ab80295
2 changed files with 2 additions and 2 deletions

View File

@ -198,7 +198,7 @@ OneServerSocket::Open()
}
ServerSocket::ServerSocket(EventLoop &_loop) noexcept
:loop(_loop), next_serial(1) {}
:loop(_loop) {}
/* this is just here to allow the OneServerSocket forward
declaration */

View File

@ -39,7 +39,7 @@ class ServerSocket {
std::list<OneServerSocket> sockets;
unsigned next_serial;
unsigned next_serial = 1;
public:
ServerSocket(EventLoop &_loop) noexcept;