1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 17:43:14 +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
+9 -4
View File
@@ -31,7 +31,9 @@ static ExtensibleItem<NSMiscData> *GetItem(const Anope::string &name)
return it;
}
struct NSMiscData : MiscData, Serializable
struct NSMiscData
: MiscData
, Serializable
{
NSMiscData(Extensible *) : Serializable("NSMiscData") { }
@@ -88,7 +90,8 @@ static Anope::string GetAttribute(const Anope::string &command)
return command;
}
class CommandNSSetMisc : public Command
class CommandNSSetMisc
: public Command
{
public:
CommandNSSetMisc(Module *creator, const Anope::string &cname = "nickserv/set/misc", size_t min = 0) : Command(creator, cname, min, min + 1)
@@ -161,7 +164,8 @@ public:
}
};
class CommandNSSASetMisc : public CommandNSSetMisc
class CommandNSSASetMisc
: public CommandNSSetMisc
{
public:
CommandNSSASetMisc(Module *creator) : CommandNSSetMisc(creator, "nickserv/saset/misc", 1)
@@ -176,7 +180,8 @@ public:
}
};
class NSSetMisc : public Module
class NSSetMisc
: public Module
{
CommandNSSetMisc commandnssetmisc;
CommandNSSASetMisc commandnssasetmisc;