summaryrefslogtreecommitdiff
path: root/modules/m_httpd.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
committerSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
commita6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch)
treed4d1fded5c14350eb003a665ca8de500a0440cea /modules/m_httpd.cpp
parent398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff)
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/m_httpd.cpp')
-rw-r--r--modules/m_httpd.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/m_httpd.cpp b/modules/m_httpd.cpp
index fa9f03823..162ec3ada 100644
--- a/modules/m_httpd.cpp
+++ b/modules/m_httpd.cpp
@@ -37,7 +37,8 @@ static Anope::string GetStatusFromCode(HTTPError err)
return "501 Not Implemented";
}
-class MyHTTPClient : public HTTPClient
+class MyHTTPClient
+ : public HTTPClient
{
HTTPProvider *provider;
HTTPMessage message;
@@ -282,7 +283,9 @@ public:
}
};
-class MyHTTPProvider : public HTTPProvider, public Timer
+class MyHTTPProvider
+ : public HTTPProvider
+ , public Timer
{
int timeout;
std::map<Anope::string, HTTPPage *> pages;
@@ -329,7 +332,8 @@ public:
}
};
-class HTTPD : public Module
+class HTTPD
+ : public Module
{
ServiceReference<SSLService> sslref;
std::map<Anope::string, MyHTTPProvider *> providers;