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:
+1
-1
@@ -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
@@ -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
@@ -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 ¶m)
|
||||
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
@@ -17,7 +17,7 @@
|
||||
|
||||
UplinkSocket *UplinkSock = NULL;
|
||||
|
||||
class ReconnectTimer
|
||||
class ReconnectTimer final
|
||||
: public Timer
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
#include "pthread.h"
|
||||
|
||||
struct ThreadInfo
|
||||
struct ThreadInfo final
|
||||
{
|
||||
void *(*entry)(void *);
|
||||
void *param;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
# define SIGPIPE -1
|
||||
#endif
|
||||
|
||||
struct sigaction
|
||||
struct sigaction final
|
||||
{
|
||||
void (*sa_handler)(int);
|
||||
int sa_flags;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
static struct WindowsLanguage
|
||||
static struct WindowsLanguage final
|
||||
{
|
||||
Anope::string languageName;
|
||||
USHORT windowsLanguageName;
|
||||
|
||||
Reference in New Issue
Block a user