diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 15:28:23 +0000 |
commit | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch) | |
tree | d4d1fded5c14350eb003a665ca8de500a0440cea /modules/commands/os_oper.cpp | |
parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/os_oper.cpp')
-rw-r--r-- | modules/commands/os_oper.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/commands/os_oper.cpp b/modules/commands/os_oper.cpp index 4c9fb6e24..c493b8c82 100644 --- a/modules/commands/os_oper.cpp +++ b/modules/commands/os_oper.cpp @@ -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; |