summaryrefslogtreecommitdiff
path: root/modules/commands/os_ignore.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
committerSadie Powell <sadie@witchery.services>2024-01-23 15:28:23 +0000
commita6a0f6c44780c839b2269f4f29a26ecfdbd95544 (patch)
treed4d1fded5c14350eb003a665ca8de500a0440cea /modules/commands/os_ignore.cpp
parent398d674cf40c0dba4e4cd2edd0f325ace15128c2 (diff)
Improve the layout of types that inherit from another type.
Diffstat (limited to 'modules/commands/os_ignore.cpp')
-rw-r--r--modules/commands/os_ignore.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/commands/os_ignore.cpp b/modules/commands/os_ignore.cpp
index 3fe820bce..006980299 100644
--- a/modules/commands/os_ignore.cpp
+++ b/modules/commands/os_ignore.cpp
@@ -12,7 +12,9 @@
#include "module.h"
#include "modules/os_ignore.h"
-struct IgnoreDataImpl : IgnoreData, Serializable
+struct IgnoreDataImpl
+ : IgnoreData
+ , Serializable
{
IgnoreDataImpl() : Serializable("IgnoreData") { }
~IgnoreDataImpl() override;
@@ -57,7 +59,8 @@ Serializable* IgnoreDataImpl::Unserialize(Serializable *obj, Serialize::Data &da
}
-class OSIgnoreService : public IgnoreService
+class OSIgnoreService
+ : public IgnoreService
{
Serialize::Checker<std::vector<IgnoreData *> > ignores;
@@ -154,7 +157,8 @@ public:
}
};
-class CommandOSIgnore : public Command
+class CommandOSIgnore
+ : public Command
{
private:
Anope::string RealMask(const Anope::string &mask)
@@ -391,7 +395,8 @@ public:
}
};
-class OSIgnore : public Module
+class OSIgnore
+ : public Module
{
Serialize::Type ignoredata_type;
OSIgnoreService osignoreservice;