diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-01-23 13:54:16 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-01-23 16:53:06 +0000 |
| commit | 72acef4e159df5dcdb93b3c13b2f9d2e5e4c21a9 (patch) | |
| tree | fc0a965612b45478e3b6f1566641df12790a818d /modules/extra | |
| parent | a6a0f6c44780c839b2269f4f29a26ecfdbd95544 (diff) | |
Mark types that have no inheritors as final.
Diffstat (limited to 'modules/extra')
| -rw-r--r-- | modules/extra/m_ldap.cpp | 14 | ||||
| -rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 10 | ||||
| -rw-r--r-- | modules/extra/m_ldap_oper.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/m_mysql.cpp | 12 | ||||
| -rw-r--r-- | modules/extra/m_regex_pcre2.cpp | 6 | ||||
| -rw-r--r-- | modules/extra/m_regex_posix.cpp | 6 | ||||
| -rw-r--r-- | modules/extra/m_regex_tre.cpp | 6 | ||||
| -rw-r--r-- | modules/extra/m_sql_authentication.cpp | 4 | ||||
| -rw-r--r-- | modules/extra/m_sql_log.cpp | 2 | ||||
| -rw-r--r-- | modules/extra/m_sql_oper.cpp | 8 | ||||
| -rw-r--r-- | modules/extra/m_sqlite.cpp | 6 | ||||
| -rw-r--r-- | modules/extra/m_ssl_gnutls.cpp | 20 | ||||
| -rw-r--r-- | modules/extra/m_ssl_openssl.cpp | 6 |
13 files changed, 52 insertions, 52 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp index bdfa243f0..31e712662 100644 --- a/modules/extra/m_ldap.cpp +++ b/modules/extra/m_ldap.cpp @@ -72,7 +72,7 @@ public: virtual int run() = 0; }; -class LDAPBind +class LDAPBind final : public LDAPRequest { Anope::string who, pass; @@ -89,7 +89,7 @@ public: int run() override; }; -class LDAPSearchRequest +class LDAPSearchRequest final : public LDAPRequest { Anope::string base; @@ -107,7 +107,7 @@ public: int run() override; }; -class LDAPAdd +class LDAPAdd final : public LDAPRequest { Anope::string dn; @@ -125,7 +125,7 @@ public: int run() override; }; -class LDAPDel +class LDAPDel final : public LDAPRequest { Anope::string dn; @@ -141,7 +141,7 @@ public: int run() override; }; -class LDAPModify +class LDAPModify final : public LDAPRequest { Anope::string base; @@ -159,7 +159,7 @@ public: int run() override; }; -class LDAPService +class LDAPService final : public LDAPProvider , public Thread , public Condition @@ -509,7 +509,7 @@ public: } }; -class ModuleLDAP +class ModuleLDAP final : public Module , public Pipe { diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index f3ccb9ba7..1b8318d7e 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -17,7 +17,7 @@ static Anope::string object_class; static Anope::string email_attribute; static Anope::string username_attribute; -struct IdentifyInfo +struct IdentifyInfo final { Reference<User> user; IdentifyRequest *req; @@ -36,7 +36,7 @@ struct IdentifyInfo } }; -class IdentifyInterface +class IdentifyInterface final : public LDAPInterface { IdentifyInfo *ii; @@ -128,7 +128,7 @@ public: } }; -class OnIdentifyInterface +class OnIdentifyInterface final : public LDAPInterface { Anope::string uid; @@ -174,7 +174,7 @@ public: } }; -class OnRegisterInterface +class OnRegisterInterface final : public LDAPInterface { public: @@ -191,7 +191,7 @@ public: } }; -class ModuleLDAPAuthentication +class ModuleLDAPAuthentication final : public Module { ServiceReference<LDAPProvider> ldap; diff --git a/modules/extra/m_ldap_oper.cpp b/modules/extra/m_ldap_oper.cpp index b949782e1..866ed0110 100644 --- a/modules/extra/m_ldap_oper.cpp +++ b/modules/extra/m_ldap_oper.cpp @@ -12,7 +12,7 @@ static std::set<Oper *> my_opers; static Anope::string opertype_attribute; -class IdentifyInterface +class IdentifyInterface final : public LDAPInterface { Reference<User> u; @@ -76,7 +76,7 @@ public: } }; -class LDAPOper +class LDAPOper final : public Module { ServiceReference<LDAPProvider> ldap; diff --git a/modules/extra/m_mysql.cpp b/modules/extra/m_mysql.cpp index 2ccc36d76..d4be01f88 100644 --- a/modules/extra/m_mysql.cpp +++ b/modules/extra/m_mysql.cpp @@ -34,7 +34,7 @@ class MySQLService; /** A query request */ -struct QueryRequest +struct QueryRequest final { /* The connection to the database */ MySQLService *service; @@ -47,7 +47,7 @@ struct QueryRequest }; /** A query result */ -struct QueryResult +struct QueryResult final { /* The interface to send the data back on */ Interface *sqlinterface; @@ -59,7 +59,7 @@ struct QueryResult /** A MySQL result */ -class MySQLResult +class MySQLResult final : public Result { MYSQL_RES *res = nullptr; @@ -108,7 +108,7 @@ public: /** A MySQL connection, there can be multiple */ -class MySQLService +class MySQLService final : public Provider { std::map<Anope::string, std::set<Anope::string> > active_schema; @@ -158,7 +158,7 @@ public: /** The SQL thread used to execute queries */ -class DispatcherThread +class DispatcherThread final : public Thread , public Condition { @@ -171,7 +171,7 @@ public: class ModuleSQL; static ModuleSQL *me; -class ModuleSQL +class ModuleSQL final : public Module , public Pipe { diff --git a/modules/extra/m_regex_pcre2.cpp b/modules/extra/m_regex_pcre2.cpp index f573adaf3..ef2786823 100644 --- a/modules/extra/m_regex_pcre2.cpp +++ b/modules/extra/m_regex_pcre2.cpp @@ -14,7 +14,7 @@ #define PCRE2_CODE_UNIT_WIDTH 8 #include <pcre2.h> -class PCRERegex +class PCRERegex final : public Regex { pcre2_code *regex; @@ -48,7 +48,7 @@ public: } }; -class PCRERegexProvider +class PCRERegexProvider final : public RegexProvider { public: @@ -60,7 +60,7 @@ public: } }; -class ModuleRegexPCRE +class ModuleRegexPCRE final : public Module { PCRERegexProvider pcre_regex_provider; diff --git a/modules/extra/m_regex_posix.cpp b/modules/extra/m_regex_posix.cpp index c4217a5c4..cef4486f9 100644 --- a/modules/extra/m_regex_posix.cpp +++ b/modules/extra/m_regex_posix.cpp @@ -10,7 +10,7 @@ #include <sys/types.h> #include <regex.h> -class POSIXRegex +class POSIXRegex final : public Regex { regex_t regbuf; @@ -39,7 +39,7 @@ public: } }; -class POSIXRegexProvider +class POSIXRegexProvider final : public RegexProvider { public: @@ -51,7 +51,7 @@ public: } }; -class ModuleRegexPOSIX +class ModuleRegexPOSIX final : public Module { POSIXRegexProvider posix_regex_provider; diff --git a/modules/extra/m_regex_tre.cpp b/modules/extra/m_regex_tre.cpp index 61a5a79ec..18485507a 100644 --- a/modules/extra/m_regex_tre.cpp +++ b/modules/extra/m_regex_tre.cpp @@ -11,7 +11,7 @@ #include "module.h" #include <tre/regex.h> -class TRERegex +class TRERegex final : public Regex { regex_t regbuf; @@ -40,7 +40,7 @@ public: } }; -class TRERegexProvider +class TRERegexProvider final : public RegexProvider { public: @@ -52,7 +52,7 @@ public: } }; -class ModuleRegexTRE +class ModuleRegexTRE final : public Module { TRERegexProvider tre_regex_provider; diff --git a/modules/extra/m_sql_authentication.cpp b/modules/extra/m_sql_authentication.cpp index 829cf37fb..8d60f12ea 100644 --- a/modules/extra/m_sql_authentication.cpp +++ b/modules/extra/m_sql_authentication.cpp @@ -11,7 +11,7 @@ static Module *me; -class SQLAuthenticationResult +class SQLAuthenticationResult final : public SQL::Interface { Reference<User> user; @@ -74,7 +74,7 @@ public: } }; -class ModuleSQLAuthentication +class ModuleSQLAuthentication final : public Module { Anope::string engine; diff --git a/modules/extra/m_sql_log.cpp b/modules/extra/m_sql_log.cpp index bd8f81320..7335a5abf 100644 --- a/modules/extra/m_sql_log.cpp +++ b/modules/extra/m_sql_log.cpp @@ -9,7 +9,7 @@ #include "module.h" #include "modules/sql.h" -class SQLLog +class SQLLog final : public Module { std::set<Anope::string> inited; diff --git a/modules/extra/m_sql_oper.cpp b/modules/extra/m_sql_oper.cpp index 931d1eeed..7642bab5f 100644 --- a/modules/extra/m_sql_oper.cpp +++ b/modules/extra/m_sql_oper.cpp @@ -9,18 +9,18 @@ #include "module.h" #include "modules/sql.h" -struct SQLOper +struct SQLOper final : Oper { SQLOper(const Anope::string &n, OperType *o) : Oper(n, o) { } }; -class SQLOperResult +class SQLOperResult final : public SQL::Interface { Reference<User> user; - struct SQLOperResultDeleter + struct SQLOperResultDeleter final { SQLOperResult *res; SQLOperResultDeleter(SQLOperResult *r) : res(r) { } @@ -125,7 +125,7 @@ public: } }; -class ModuleSQLOper +class ModuleSQLOper final : public Module { Anope::string engine; diff --git a/modules/extra/m_sqlite.cpp b/modules/extra/m_sqlite.cpp index 9905d2073..f11c0bf09 100644 --- a/modules/extra/m_sqlite.cpp +++ b/modules/extra/m_sqlite.cpp @@ -19,7 +19,7 @@ using namespace SQL; /** A SQLite result */ -class SQLiteResult +class SQLiteResult final : public Result { public: @@ -39,7 +39,7 @@ public: /** A SQLite database, there can be multiple */ -class SQLiteService +class SQLiteService final : public Provider { std::map<Anope::string, std::set<Anope::string> > active_schema; @@ -70,7 +70,7 @@ public: Anope::string FromUnixtime(time_t) override; }; -class ModuleSQLite +class ModuleSQLite final : public Module { /* SQL connections */ diff --git a/modules/extra/m_ssl_gnutls.cpp b/modules/extra/m_ssl_gnutls.cpp index 6daad09db..28310471a 100644 --- a/modules/extra/m_ssl_gnutls.cpp +++ b/modules/extra/m_ssl_gnutls.cpp @@ -22,7 +22,7 @@ static GnuTLSModule *me; namespace GnuTLS { class X509CertCredentials; } -class MySSLService +class MySSLService final : public SSLService { public: @@ -34,7 +34,7 @@ public: void Init(Socket *s) override; }; -class SSLSocketIO +class SSLSocketIO final : public SocketIO { public: @@ -92,7 +92,7 @@ public: namespace GnuTLS { - class Init + class Init final { public: Init() { gnutls_global_init(); } @@ -101,7 +101,7 @@ namespace GnuTLS /** Used to create a gnutls_datum_t* from an Anope::string */ - class Datum + class Datum final { gnutls_datum_t datum; @@ -115,7 +115,7 @@ namespace GnuTLS const gnutls_datum_t *get() const { return &datum; } }; - class DHParams + class DHParams final { gnutls_dh_params_t dh_params = nullptr; @@ -150,11 +150,11 @@ namespace GnuTLS gnutls_dh_params_t get() const { return dh_params; } }; - class X509Key + class X509Key final { /** Ensure that the key is deinited in case the constructor of X509Key throws */ - class RAIIKey + class RAIIKey final { public: gnutls_x509_privkey_t key; @@ -184,7 +184,7 @@ namespace GnuTLS gnutls_x509_privkey_t& get() { return key.key; } }; - class X509CertList + class X509CertList final { std::vector<gnutls_x509_crt_t> certs; @@ -223,7 +223,7 @@ namespace GnuTLS unsigned int size() const { return certs.size(); } }; - class X509CertCredentials + class X509CertCredentials final { unsigned int refcount = 0; gnutls_certificate_credentials_t cred; @@ -286,7 +286,7 @@ namespace GnuTLS }; } -class GnuTLSModule +class GnuTLSModule final : public Module { GnuTLS::Init libinit; diff --git a/modules/extra/m_ssl_openssl.cpp b/modules/extra/m_ssl_openssl.cpp index 470f5f43f..8d4aca9ba 100644 --- a/modules/extra/m_ssl_openssl.cpp +++ b/modules/extra/m_ssl_openssl.cpp @@ -23,7 +23,7 @@ static SSL_CTX *server_ctx, *client_ctx; -class MySSLService +class MySSLService final : public SSLService { public: @@ -35,7 +35,7 @@ public: void Init(Socket *s) override; }; -class SSLSocketIO +class SSLSocketIO final : public SocketIO { public: @@ -93,7 +93,7 @@ public: class SSLModule; static SSLModule *me; -class SSLModule +class SSLModule final : public Module { Anope::string certfile, keyfile; |
