diff options
| author | 2020-02-06 11:25:42 +0000 | |
|---|---|---|
| committer | 2020-02-06 11:25:42 +0000 | |
| commit | 98e4ddfb21d285c8b675788c155bb204822fbd4a (patch) | |
| tree | 030eb18c989bf3c9e4768a538796e3221ca7934e /src/modules/m_httpd.cpp | |
| parent | In C++11 [io]fstream has std::string constructors; use them. (diff) | |
Use C++11 inline initialisation for class members.
Diffstat (limited to 'src/modules/m_httpd.cpp')
| -rw-r--r-- | src/modules/m_httpd.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/modules/m_httpd.cpp b/src/modules/m_httpd.cpp index b0f4ecf0b..e649cfaca 100644 --- a/src/modules/m_httpd.cpp +++ b/src/modules/m_httpd.cpp @@ -70,12 +70,12 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru HTTPHeaders headers; std::string body; size_t total_buffers; - int status_code; + int status_code = 0; /** True if this object is in the cull list */ - bool waitingcull; - bool messagecomplete; + bool waitingcull = false; + bool messagecomplete = false; bool Tick(time_t currtime) override { @@ -205,9 +205,6 @@ class HttpServerSocket : public BufferedSocket, public Timer, public insp::intru : BufferedSocket(newfd) , Timer(timeoutsec) , ip(IP) - , status_code(0) - , waitingcull(false) - , messagecomplete(false) { if ((!via->iohookprovs.empty()) && (via->iohookprovs.back())) { |
