diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
commit | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch) | |
tree | d4d1fded5c14350eb003a665ca8de500a0440cea /modules/m_xmlrpc_main.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/m_xmlrpc_main.cpp')
-rw-r--r-- | modules/m_xmlrpc_main.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/m_xmlrpc_main.cpp b/modules/m_xmlrpc_main.cpp index 3f7ab71d0..f7e499714 100644 --- a/modules/m_xmlrpc_main.cpp +++ b/modules/m_xmlrpc_main.cpp @@ -11,7 +11,8 @@ static Module *me; -class XMLRPCIdentifyRequest : public IdentifyRequest +class XMLRPCIdentifyRequest + : public IdentifyRequest { XMLRPCRequest request; HTTPReply repl; /* Request holds a reference to the HTTPReply, because we might exist long enough to invalidate it @@ -50,7 +51,8 @@ public: } }; -class MyXMLRPCEvent : public XMLRPCEvent +class MyXMLRPCEvent + : public XMLRPCEvent { public: bool Run(XMLRPCServiceInterface *iface, HTTPClient *client, XMLRPCRequest &request) override @@ -95,7 +97,8 @@ private: Anope::string out; - struct XMLRPCommandReply : CommandReply + struct XMLRPCommandReply + : CommandReply { Anope::string &str; @@ -275,7 +278,8 @@ private: } }; -class ModuleXMLRPCMain : public Module +class ModuleXMLRPCMain + : public Module { ServiceReference<XMLRPCServiceInterface> xmlrpc; |