Commit 413ab802 authored by Max Kellermann's avatar Max Kellermann

event/ServerSocket: use C++11 initializer

parent daffefdb
......@@ -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 */
......
......@@ -39,7 +39,7 @@ class ServerSocket {
std::list<OneServerSocket> sockets;
unsigned next_serial;
unsigned next_serial = 1;
public:
ServerSocket(EventLoop &_loop) noexcept;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment