client/Response: add noexcept
This commit is contained in:
@@ -29,25 +29,25 @@ Response::GetTagMask() const noexcept
|
||||
}
|
||||
|
||||
bool
|
||||
Response::Write(const void *data, size_t length)
|
||||
Response::Write(const void *data, size_t length) noexcept
|
||||
{
|
||||
return client.Write(data, length);
|
||||
}
|
||||
|
||||
bool
|
||||
Response::Write(const char *data)
|
||||
Response::Write(const char *data) noexcept
|
||||
{
|
||||
return client.Write(data);
|
||||
}
|
||||
|
||||
bool
|
||||
Response::FormatV(const char *fmt, va_list args)
|
||||
Response::FormatV(const char *fmt, va_list args) noexcept
|
||||
{
|
||||
return Write(FormatStringV(fmt, args).c_str());
|
||||
}
|
||||
|
||||
bool
|
||||
Response::Format(const char *fmt, ...)
|
||||
Response::Format(const char *fmt, ...) noexcept
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
@@ -57,13 +57,13 @@ Response::Format(const char *fmt, ...)
|
||||
}
|
||||
|
||||
void
|
||||
Response::Error(enum ack code, const char *msg)
|
||||
Response::Error(enum ack code, const char *msg) noexcept
|
||||
{
|
||||
FormatError(code, "%s", msg);
|
||||
}
|
||||
|
||||
void
|
||||
Response::FormatError(enum ack code, const char *fmt, ...)
|
||||
Response::FormatError(enum ack code, const char *fmt, ...) noexcept
|
||||
{
|
||||
Format("ACK [%i@%u] {%s} ",
|
||||
(int)code, list_index, command);
|
||||
|
||||
Reference in New Issue
Block a user