diff options
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/dns.h | 4 | ||||
| -rw-r--r-- | include/modules/httpd.h | 6 | ||||
| -rw-r--r-- | include/modules/ldap.h | 6 | ||||
| -rw-r--r-- | include/modules/os_news.h | 2 | ||||
| -rw-r--r-- | include/modules/os_session.h | 4 | ||||
| -rw-r--r-- | include/modules/redis.h | 2 | ||||
| -rw-r--r-- | include/modules/sasl.h | 2 | ||||
| -rw-r--r-- | include/modules/sql.h | 6 | ||||
| -rw-r--r-- | include/modules/xmlrpc.h | 2 |
9 files changed, 17 insertions, 17 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h index 25123a504..801b5b2f0 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -79,7 +79,7 @@ namespace DNS Question(const Anope::string &n, QueryType t, unsigned short c = 1) : name(n), type(t), qclass(c) { } inline bool operator==(const Question & other) const { return name == other.name && type == other.type && qclass == other.qclass; } - struct hash + struct hash final { size_t operator()(const Question &q) const { @@ -88,7 +88,7 @@ namespace DNS }; }; - struct ResourceRecord + struct ResourceRecord final : Question { unsigned int ttl = 0; diff --git a/include/modules/httpd.h b/include/modules/httpd.h index c755e9dd2..b08ca8bf4 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -18,7 +18,7 @@ enum HTTPError }; /* A message to someone */ -struct HTTPReply +struct HTTPReply final { HTTPError error = HTTP_ERROR_OK; Anope::string content_type; @@ -46,7 +46,7 @@ struct HTTPReply out.clear(); } - struct Data + struct Data final { char *buf; size_t len; @@ -81,7 +81,7 @@ struct HTTPReply }; /* A message from someone */ -struct HTTPMessage +struct HTTPMessage final { std::map<Anope::string, Anope::string> headers; std::map<Anope::string, Anope::string> cookies; diff --git a/include/modules/ldap.h b/include/modules/ldap.h index 37087198d..2342bd1ba 100644 --- a/include/modules/ldap.h +++ b/include/modules/ldap.h @@ -16,7 +16,7 @@ public: virtual ~LDAPException() noexcept = default; }; -struct LDAPModification +struct LDAPModification final { enum LDAPOperation { @@ -31,7 +31,7 @@ struct LDAPModification }; typedef std::vector<LDAPModification> LDAPMods; -struct LDAPAttributes +struct LDAPAttributes final : public std::map<Anope::string, std::vector<Anope::string>> { size_t size(const Anope::string &attr) const @@ -75,7 +75,7 @@ enum QueryType QUERY_MODIFY }; -struct LDAPResult +struct LDAPResult final { std::vector<LDAPAttributes> messages; Anope::string error; diff --git a/include/modules/os_news.h b/include/modules/os_news.h index af7619e56..03842946c 100644 --- a/include/modules/os_news.h +++ b/include/modules/os_news.h @@ -15,7 +15,7 @@ enum NewsType NEWS_OPER }; -struct NewsMessages +struct NewsMessages final { NewsType type; Anope::string name; diff --git a/include/modules/os_session.h b/include/modules/os_session.h index 5341b4fe0..7077b0985 100644 --- a/include/modules/os_session.h +++ b/include/modules/os_session.h @@ -8,7 +8,7 @@ #pragma once -struct Session +struct Session final { cidr addr; /* A cidr (sockaddrs + len) representing this session */ unsigned count = 1; /* Number of clients with this host */ @@ -17,7 +17,7 @@ struct Session Session(const sockaddrs &ip, int len) : addr(ip, len) { } }; -struct Exception +struct Exception final : Serializable { Anope::string mask; /* Hosts to which this exception applies */ diff --git a/include/modules/redis.h b/include/modules/redis.h index ec990823e..71ccf6ef7 100644 --- a/include/modules/redis.h +++ b/include/modules/redis.h @@ -10,7 +10,7 @@ namespace Redis { - struct Reply + struct Reply final { enum Type { diff --git a/include/modules/sasl.h b/include/modules/sasl.h index 2b1c6a30d..2e4d990c5 100644 --- a/include/modules/sasl.h +++ b/include/modules/sasl.h @@ -10,7 +10,7 @@ namespace SASL { - struct Message + struct Message final { Anope::string source; Anope::string target; diff --git a/include/modules/sql.h b/include/modules/sql.h index 59cc7a24b..8355fe009 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -11,7 +11,7 @@ namespace SQL { - class Data + class Data final : public Serialize::Data { public: @@ -93,13 +93,13 @@ namespace SQL /** A SQL query */ - struct QueryData + struct QueryData final { Anope::string data; bool escape; }; - struct Query + struct Query final { Anope::string query; std::map<Anope::string, QueryData> parameters; diff --git a/include/modules/xmlrpc.h b/include/modules/xmlrpc.h index a12a23c9e..698a8e6ce 100644 --- a/include/modules/xmlrpc.h +++ b/include/modules/xmlrpc.h @@ -10,7 +10,7 @@ #include "httpd.h" -class XMLRPCRequest +class XMLRPCRequest final { std::map<Anope::string, Anope::string> replies; |
