client/*: add "noexcept"

This commit is contained in:
Max Kellermann
2017-12-20 10:38:29 +01:00
parent 7094d88958
commit 5f9d4a02a5
5 changed files with 30 additions and 30 deletions

View File

@@ -42,7 +42,7 @@
static constexpr char GREETING[] = "OK MPD " PROTOCOL_VERSION "\n";
Client::Client(EventLoop &_loop, Partition &_partition,
UniqueSocketDescriptor _fd, int _uid, int _num)
UniqueSocketDescriptor _fd, int _uid, int _num) noexcept
:FullyBufferedSocket(_fd.Release(), _loop,
16384, client_max_output_buffer_size),
timeout_event(_loop, BIND_THIS_METHOD(OnTimeout)),
@@ -56,7 +56,7 @@ Client::Client(EventLoop &_loop, Partition &_partition,
void
client_new(EventLoop &loop, Partition &partition,
UniqueSocketDescriptor fd, SocketAddress address, int uid)
UniqueSocketDescriptor fd, SocketAddress address, int uid) noexcept
{
static unsigned int next_client_num;
const auto remote = ToString(address);
@@ -102,7 +102,7 @@ client_new(EventLoop &loop, Partition &partition,
}
void
Client::Close()
Client::Close() noexcept
{
partition->instance.client_list->Remove(*this);