1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 07:23:14 +02:00

Mark types that have no inheritors as final.

This commit is contained in:
Sadie Powell
2024-01-23 13:54:16 +00:00
parent a6a0f6c447
commit 72acef4e15
227 changed files with 771 additions and 771 deletions
+4 -4
View File
@@ -11,7 +11,7 @@
#include "module.h"
class CommandCSAKick
class CommandCSAKick final
: public Command
{
void Enforce(CommandSource &source, ChannelInfo *ci)
@@ -204,7 +204,7 @@ class CommandCSAKick
/* Special case: is it a number/list? Only do search if it isn't. */
if (isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class AkickDelCallback
class AkickDelCallback final
: public NumberList
{
CommandSource &source;
@@ -282,7 +282,7 @@ class CommandCSAKick
if (!mask.empty() && isdigit(mask[0]) && mask.find_first_not_of("1234567890,-") == Anope::string::npos)
{
class AkickListCallback
class AkickListCallback final
: public NumberList
{
ListFormatter &list;
@@ -528,7 +528,7 @@ public:
}
};
class CSAKick
class CSAKick final
: public Module
{
CommandCSAKick commandcsakick;