client/Write: add noexcept

This commit is contained in:
Max Kellermann
2019-04-03 21:37:38 +02:00
parent 6db84852ae
commit 3610f55479
2 changed files with 4 additions and 4 deletions

View File

@@ -22,14 +22,14 @@
#include <string.h>
bool
Client::Write(const void *data, size_t length)
Client::Write(const void *data, size_t length) noexcept
{
/* if the client is going to be closed, do nothing */
return !IsExpired() && FullyBufferedSocket::Write(data, length);
}
bool
Client::Write(const char *data)
Client::Write(const char *data) noexcept
{
return Write(data, strlen(data));
}