1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 00:43:12 +02:00

Improve the layout of types that inherit from another type.

This commit is contained in:
Sadie Powell
2024-01-23 15:28:23 +00:00
parent 398d674cf4
commit a6a0f6c447
232 changed files with 1648 additions and 798 deletions
+8 -4
View File
@@ -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;