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/bs_badwords.cpp | |
| parent | 398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff) | |
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/bs_badwords.cpp')
| -rw-r--r-- | modules/commands/bs_badwords.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/commands/bs_badwords.cpp b/modules/commands/bs_badwords.cpp index 82e4e20b3..cf863e442 100644 --- a/modules/commands/bs_badwords.cpp +++ b/modules/commands/bs_badwords.cpp @@ -12,7 +12,9 @@ #include "module.h" #include "modules/bs_badwords.h" -struct BadWordImpl : BadWord, Serializable +struct BadWordImpl + : BadWord + , Serializable { BadWordImpl() : Serializable("BadWord") { } ~BadWordImpl() override; @@ -27,7 +29,8 @@ struct BadWordImpl : BadWord, Serializable static Serializable* Unserialize(Serializable *obj, Serialize::Data &); }; -struct BadWordsImpl : BadWords +struct BadWordsImpl + : BadWords { Serialize::Reference<ChannelInfo> ci; typedef std::vector<BadWordImpl *> list; @@ -144,7 +147,8 @@ Serializable* BadWordImpl::Unserialize(Serializable *obj, Serialize::Data &data) return bw; } -class BadwordsDelCallback : public NumberList +class BadwordsDelCallback + : public NumberList { CommandSource &source; ChannelInfo *ci; @@ -181,7 +185,8 @@ public: } }; -class CommandBSBadwords : public Command +class CommandBSBadwords + : public Command { private: void DoList(CommandSource &source, ChannelInfo *ci, const Anope::string &word) @@ -200,7 +205,8 @@ private: } else if (!word.empty() && word.find_first_not_of("1234567890,-") == Anope::string::npos) { - class BadwordsListCallback : public NumberList + class BadwordsListCallback + : public NumberList { ListFormatter &list; BadWords *bw; @@ -453,7 +459,8 @@ public: } }; -class BSBadwords : public Module +class BSBadwords + : public Module { CommandBSBadwords commandbsbadwords; ExtensibleItem<BadWordsImpl> badwords; |
