1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 00:03: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
+11 -5
View File
@@ -12,7 +12,9 @@
#include "module.h"
#include "modules/cs_mode.h"
struct ModeLockImpl : ModeLock, Serializable
struct ModeLockImpl
: ModeLock
, Serializable
{
ModeLockImpl() : Serializable("ModeLock")
{
@@ -33,7 +35,8 @@ struct ModeLockImpl : ModeLock, Serializable
static Serializable* Unserialize(Serializable *obj, Serialize::Data &data);
};
struct ModeLocksImpl : ModeLocks
struct ModeLocksImpl
: ModeLocks
{
Serialize::Reference<ChannelInfo> ci;
Serialize::Checker<ModeList> mlocks;
@@ -241,7 +244,8 @@ Serializable* ModeLockImpl::Unserialize(Serializable *obj, Serialize::Data &data
return ml;
}
class CommandCSMode : public Command
class CommandCSMode
: public Command
{
bool CanSet(CommandSource &source, ChannelInfo *ci, ChannelMode *cm, bool self)
{
@@ -789,7 +793,8 @@ public:
static Anope::map<std::pair<bool, Anope::string> > modes;
class CommandCSModes : public Command
class CommandCSModes
: public Command
{
public:
CommandCSModes(Module *creator) : Command(creator, "chanserv/modes", 1, 2)
@@ -906,7 +911,8 @@ public:
}
};
class CSMode : public Module
class CSMode
: public Module
{
CommandCSMode commandcsmode;
CommandCSModes commandcsmodes;