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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user