summaryrefslogtreecommitdiff
path: root/modules/commands/os_forbid.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-01-23 13:54:16 +0000
committerSadie Powell <sadie@witchery.services>2024-01-23 16:53:06 +0000
commit72acef4e159df5dcdb93b3c13b2f9d2e5e4c21a9 (patch)
treefc0a965612b45478e3b6f1566641df12790a818d /modules/commands/os_forbid.cpp
parenta6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff)
Mark types that have no inheritors as final.
Diffstat (limited to 'modules/commands/os_forbid.cpp')
-rw-r--r--modules/commands/os_forbid.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/commands/os_forbid.cpp b/modules/commands/os_forbid.cpp
index fb18a8e5d..a06f51bb0 100644
--- a/modules/commands/os_forbid.cpp
+++ b/modules/commands/os_forbid.cpp
@@ -14,7 +14,7 @@
static ServiceReference<NickServService> nickserv("NickServService", "NickServ");
-struct ForbidDataImpl
+struct ForbidDataImpl final
: ForbidData
, Serializable
{
@@ -61,7 +61,7 @@ Serializable* ForbidDataImpl::Unserialize(Serializable *obj, Serialize::Data &da
return fb;
}
-class MyForbidService
+class MyForbidService final
: public ForbidService
{
Serialize::Checker<std::vector<ForbidData *>[FT_SIZE - 1]> forbid_data;
@@ -149,7 +149,7 @@ public:
}
};
-class CommandOSForbid
+class CommandOSForbid final
: public Command
{
ServiceReference<ForbidService> fs;
@@ -434,7 +434,7 @@ public:
}
};
-class OSForbid
+class OSForbid final
: public Module
{
MyForbidService forbidService;