1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 16:43:15 +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
+1 -1
View File
@@ -242,7 +242,7 @@ const Channel::ModeList &Channel::GetModes() const
}
template<typename F, typename S>
struct second
struct second final
{
S operator()(const std::pair<F, S> &p)
{
+2 -2
View File
@@ -41,7 +41,7 @@ time_t Anope::CurTime = time(NULL);
size_t Anope::CurrentUplink = -1;
class UpdateTimer
class UpdateTimer final
: public Timer
{
public:
@@ -53,7 +53,7 @@ public:
}
};
class ExpireTimer
class ExpireTimer final
: public Timer
{
public:
+3 -3
View File
@@ -39,7 +39,7 @@ static std::vector<ChannelModeStatus *> ChannelModesByStatus;
/* Number of generic modes we support */
unsigned ModeManager::GenericChannelModes = 0, ModeManager::GenericUserModes = 0;
struct StackerInfo
struct StackerInfo final
{
/* Modes to be added */
std::list<std::pair<Mode *, Anope::string> > AddModes;
@@ -300,7 +300,7 @@ void StackerInfo::AddMode(Mode *mode, bool set, const Anope::string &param)
list->emplace_back(mode, param);
}
static class ModePipe
static class ModePipe final
: public Pipe
{
public:
@@ -580,7 +580,7 @@ const std::vector<ChannelModeStatus *> &ModeManager::GetStatusChannelModesByRank
return ChannelModesByStatus;
}
static struct StatusSort
static struct StatusSort final
{
bool operator()(ChannelModeStatus *cm1, ChannelModeStatus *cm2) const
{
+1 -1
View File
@@ -17,7 +17,7 @@
UplinkSocket *UplinkSock = NULL;
class ReconnectTimer
class ReconnectTimer final
: public Timer
{
public:
+1 -1
View File
@@ -8,7 +8,7 @@
#include "pthread.h"
struct ThreadInfo
struct ThreadInfo final
{
void *(*entry)(void *);
void *param;
+1 -1
View File
@@ -18,7 +18,7 @@
# define SIGPIPE -1
#endif
struct sigaction
struct sigaction final
{
void (*sa_handler)(int);
int sa_flags;
+1 -1
View File
@@ -18,7 +18,7 @@
#include <sys/types.h>
#include <fcntl.h>
static struct WindowsLanguage
static struct WindowsLanguage final
{
Anope::string languageName;
USHORT windowsLanguageName;