1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 06:23:13 +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
@@ -11,7 +11,9 @@
#include "module.h"
struct MyOper : Oper, Serializable
struct MyOper
: Oper
, Serializable
{
MyOper(const Anope::string &n, OperType *o) : Oper(n, o), Serializable("Oper") { }
@@ -46,7 +48,8 @@ struct MyOper : Oper, Serializable
}
};
class CommandOSOper : public Command
class CommandOSOper
: public Command
{
bool HasPrivs(CommandSource &source, OperType *ot) const
{
@@ -252,7 +255,8 @@ public:
}
};
class OSOper : public Module
class OSOper
: public Module
{
Serialize::Type myoper_type;
CommandOSOper commandosoper;