diff options
author | Max Kellermann <max@musicpd.org> | 2017-12-20 10:38:29 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-12-20 10:38:29 +0100 |
commit | 5f9d4a02a5131cf05d14eb0285e893b3488221e5 (patch) | |
tree | 428a98601a4d568cbf2e1c50a5b4074331e0f2fa /src/client/ClientNew.cxx | |
parent | 7094d8895896ae20cf082b95464d2ff9debe1f05 (diff) |
client/*: add "noexcept"
Diffstat (limited to 'src/client/ClientNew.cxx')
-rw-r--r-- | src/client/ClientNew.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/ClientNew.cxx b/src/client/ClientNew.cxx index 11b5bc76c..81aa79d79 100644 --- a/src/client/ClientNew.cxx +++ b/src/client/ClientNew.cxx @@ -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); |