diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-20 20:27:15 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-20 20:28:15 +0200 |
commit | 9bff5f9e36a02d40f660d39f52bd9c4b63caa1a5 (patch) | |
tree | 2a1b27e1cdf4198287c085042fef3e9a08198cfc /src/client | |
parent | 2bf26a2ff8ad65848b051151c40c6a34a600cf2c (diff) |
client/Process, command/all: add `noexcept`
Clarify that those can't throw, preparing for the next commit.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/ClientInternal.hxx | 2 | ||||
-rw-r--r-- | src/client/ClientProcess.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/ClientInternal.hxx b/src/client/ClientInternal.hxx index 87a1f403b..37b5925f2 100644 --- a/src/client/ClientInternal.hxx +++ b/src/client/ClientInternal.hxx @@ -35,6 +35,6 @@ extern size_t client_max_command_list_size; extern size_t client_max_output_buffer_size; CommandResult -client_process_line(Client &client, char *line); +client_process_line(Client &client, char *line) noexcept; #endif diff --git a/src/client/ClientProcess.cxx b/src/client/ClientProcess.cxx index 547aa8c71..eeb72d35a 100644 --- a/src/client/ClientProcess.cxx +++ b/src/client/ClientProcess.cxx @@ -30,7 +30,7 @@ static CommandResult client_process_command_list(Client &client, bool list_ok, - std::list<std::string> &&list) + std::list<std::string> &&list) noexcept { CommandResult ret = CommandResult::OK; unsigned num = 0; @@ -51,7 +51,7 @@ client_process_command_list(Client &client, bool list_ok, } CommandResult -client_process_line(Client &client, char *line) +client_process_line(Client &client, char *line) noexcept { CommandResult ret; |