client/Response: use C++11 initializer

This commit is contained in:
Max Kellermann 2019-04-03 21:53:20 +02:00
parent b8a8bdeaec
commit d9117a272b

View File

@ -41,11 +41,11 @@ class Response {
/** /**
* This command's name. Used to generate error messages. * This command's name. Used to generate error messages.
*/ */
const char *command; const char *command = "";
public: public:
Response(Client &_client, unsigned _list_index) noexcept Response(Client &_client, unsigned _list_index) noexcept
:client(_client), list_index(_list_index), command("") {} :client(_client), list_index(_list_index) {}
Response(const Response &) = delete; Response(const Response &) = delete;
Response &operator=(const Response &) = delete; Response &operator=(const Response &) = delete;