diff options
| author | Sadie Powell <sadie@witchery.services> | 2022-01-03 18:34:16 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2022-01-04 00:17:13 +0000 |
| commit | 7531e90499d4cd60b6464c692725225e85c00738 (patch) | |
| tree | 930fd946ea495b74c4071a67e12cadb700ab79ab /include/modules/httpd.h | |
| parent | dfcc025a19d7d49179d75f34553c36e0d47eaded (diff) | |
Use C++11 style class/struct initialisation.
Diffstat (limited to 'include/modules/httpd.h')
| -rw-r--r-- | include/modules/httpd.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/modules/httpd.h b/include/modules/httpd.h index 6431534e3..d9ab85df7 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -21,13 +21,13 @@ enum HTTPError /* A message to someone */ struct HTTPReply { - HTTPError error; + HTTPError error = HTTP_ERROR_OK; Anope::string content_type; std::map<Anope::string, Anope::string, ci::less> headers; typedef std::list<std::pair<Anope::string, Anope::string> > cookie; std::vector<cookie> cookies; - HTTPReply() : error(HTTP_ERROR_OK), length(0) { } + HTTPReply() = default; HTTPReply(const HTTPReply& other) : error(other.error), length(other.length) { @@ -65,7 +65,7 @@ struct HTTPReply }; std::deque<Data *> out; - size_t length; + size_t length = 0; void Write(const Anope::string &message) { |
