Commit d9117a27 authored by Max Kellermann's avatar Max Kellermann

client/Response: use C++11 initializer

parent b8a8bdea
...@@ -41,11 +41,11 @@ class Response { ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment