1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 06:53: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
+7 -3
View File
@@ -31,7 +31,9 @@ static ExtensibleItem<CSMiscData> *GetItem(const Anope::string &name)
return it;
}
struct CSMiscData : MiscData, Serializable
struct CSMiscData
: MiscData
, Serializable
{
CSMiscData(Extensible *obj) : Serializable("CSMiscData") { }
@@ -88,7 +90,8 @@ static Anope::string GetAttribute(const Anope::string &command)
return command;
}
class CommandCSSetMisc : public Command
class CommandCSSetMisc
: public Command
{
public:
CommandCSSetMisc(Module *creator, const Anope::string &cname = "chanserv/set/misc") : Command(creator, cname, 1, 2)
@@ -164,7 +167,8 @@ public:
}
};
class CSSetMisc : public Module
class CSSetMisc
: public Module
{
CommandCSSetMisc commandcssetmisc;
Serialize::Type csmiscdata_type;