output/httpd: make enum strictly-typed

This commit is contained in:
Max Kellermann
2017-11-10 21:25:03 +01:00
parent 83f8eeec44
commit c54a920d13
2 changed files with 15 additions and 15 deletions

View File

@@ -46,7 +46,7 @@ class HttpdClient final
/**
* The current state of the client.
*/
enum {
enum class State {
/** reading the request line */
REQUEST,
@@ -55,7 +55,7 @@ class HttpdClient final
/** sending the HTTP response */
RESPONSE,
} state = REQUEST;
} state = State::REQUEST;
/**
* A queue of #Page objects to be sent to the client.
@@ -160,7 +160,7 @@ public:
bool HandleLine(const char *line);
/**
* Switch the client to the "RESPONSE" state.
* Switch the client to #State::RESPONSE.
*/
void BeginResponse();