diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:27:01 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-26 15:34:17 +0000 |
| commit | c6cb4ba159a8916243d7ac5a5c4e8d13942baf99 (patch) | |
| tree | 5183b6cb982dadb2b91987ff7b69486ea8d811df /include/modules | |
| parent | e341cac8d6565044f7390852afb40c5e388121df (diff) | |
Fix some coding style issues.
Diffstat (limited to 'include/modules')
| -rw-r--r-- | include/modules/bs_badwords.h | 4 | ||||
| -rw-r--r-- | include/modules/cs_entrymsg.h | 2 | ||||
| -rw-r--r-- | include/modules/httpd.h | 8 | ||||
| -rw-r--r-- | include/modules/ns_cert.h | 2 | ||||
| -rw-r--r-- | include/modules/os_forbid.h | 2 | ||||
| -rw-r--r-- | include/modules/os_session.h | 4 | ||||
| -rw-r--r-- | include/modules/sasl.h | 4 | ||||
| -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/bs_badwords.h b/include/modules/bs_badwords.h index c20b4e87a..e4866d250 100644 --- a/include/modules/bs_badwords.h +++ b/include/modules/bs_badwords.h @@ -46,13 +46,13 @@ struct BadWords * @param type The type (SINGLE START END) * @return The badword */ - virtual BadWord* AddBadWord(const Anope::string &word, BadWordType type) = 0; + virtual BadWord *AddBadWord(const Anope::string &word, BadWordType type) = 0; /** Get a badword structure by index * @param index The index * @return The badword */ - virtual BadWord* GetBadWord(unsigned index) const = 0; + virtual BadWord *GetBadWord(unsigned index) const = 0; /** Get how many badwords are on this channel * @return The number of badwords in the vector diff --git a/include/modules/cs_entrymsg.h b/include/modules/cs_entrymsg.h index 8259adf49..219c598a6 100644 --- a/include/modules/cs_entrymsg.h +++ b/include/modules/cs_entrymsg.h @@ -33,5 +33,5 @@ public: delete (*this)->at(i - 1); } - virtual EntryMsg* Create() = 0; + virtual EntryMsg *Create() = 0; }; diff --git a/include/modules/httpd.h b/include/modules/httpd.h index b08ca8bf4..d78de4a02 100644 --- a/include/modules/httpd.h +++ b/include/modules/httpd.h @@ -27,9 +27,9 @@ struct HTTPReply final std::vector<cookie> cookies; HTTPReply() = default; - HTTPReply& operator=(const HTTPReply &) = default; + HTTPReply &operator=(const HTTPReply &) = default; - HTTPReply(const HTTPReply& other) : error(other.error), length(other.length) + HTTPReply(const HTTPReply &other) : error(other.error), length(other.length) { content_type = other.content_type; headers = other.headers; @@ -169,7 +169,7 @@ public: virtual bool RegisterPage(HTTPPage *page) = 0; virtual void UnregisterPage(HTTPPage *page) = 0; - virtual HTTPPage* FindPage(const Anope::string &name) = 0; + virtual HTTPPage *FindPage(const Anope::string &name) = 0; }; namespace HTTPUtils @@ -180,7 +180,7 @@ namespace HTTPUtils for (unsigned i = 0; i < url.length(); ++i) { - const char& c = url[i]; + const char &c = url[i]; if (c == '%' && i + 2 < url.length()) { diff --git a/include/modules/ns_cert.h b/include/modules/ns_cert.h index 804643e77..8ecf610bb 100644 --- a/include/modules/ns_cert.h +++ b/include/modules/ns_cert.h @@ -78,5 +78,5 @@ class CertService public: CertService(Module *c) : Service(c, "CertService", "certs") { } - virtual NickCore* FindAccountFromCert(const Anope::string &cert) = 0; + virtual NickCore *FindAccountFromCert(const Anope::string &cert) = 0; }; diff --git a/include/modules/os_forbid.h b/include/modules/os_forbid.h index 19b34a1e6..3dd7e3959 100644 --- a/include/modules/os_forbid.h +++ b/include/modules/os_forbid.h @@ -41,7 +41,7 @@ public: virtual void RemoveForbid(ForbidData *d) = 0; - virtual ForbidData* CreateForbid() = 0; + virtual ForbidData *CreateForbid() = 0; virtual ForbidData *FindForbid(const Anope::string &mask, ForbidType type) = 0; diff --git a/include/modules/os_session.h b/include/modules/os_session.h index 7077b0985..4281ed086 100644 --- a/include/modules/os_session.h +++ b/include/modules/os_session.h @@ -29,7 +29,7 @@ struct Exception final Exception() : Serializable("Exception") { } void Serialize(Serialize::Data &data) const override; - static Serializable* Unserialize(Serializable *obj, Serialize::Data &data); + static Serializable *Unserialize(Serializable *obj, Serialize::Data &data); }; class SessionService @@ -70,7 +70,7 @@ void Exception::Serialize(Serialize::Data &data) const data["expires"] << this->expires; } -Serializable* Exception::Unserialize(Serializable *obj, Serialize::Data &data) +Serializable *Exception::Unserialize(Serializable *obj, Serialize::Data &data) { if (!session_service) return NULL; diff --git a/include/modules/sasl.h b/include/modules/sasl.h index 2e4d990c5..e4d683d3f 100644 --- a/include/modules/sasl.h +++ b/include/modules/sasl.h @@ -32,7 +32,7 @@ namespace SASL virtual Anope::string GetAgent() = 0; - virtual Session* GetSession(const Anope::string &uid) = 0; + virtual Session *GetSession(const Anope::string &uid) = 0; virtual void SendMessage(SASL::Session *session, const Anope::string &type, const Anope::string &data) = 0; @@ -67,7 +67,7 @@ namespace SASL public: Mechanism(Module *o, const Anope::string &sname) : Service(o, "SASL::Mechanism", sname) { } - virtual Session* CreateSession(const Anope::string &uid) { return new Session(this, uid); } + virtual Session *CreateSession(const Anope::string &uid) { return new Session(this, uid); } virtual void ProcessMessage(Session *session, const Message &) = 0; diff --git a/include/modules/sql.h b/include/modules/sql.h index 8355fe009..1fe87b5f1 100644 --- a/include/modules/sql.h +++ b/include/modules/sql.h @@ -24,7 +24,7 @@ namespace SQL Clear(); } - std::iostream& operator[](const Anope::string &key) override + std::iostream &operator[](const Anope::string &key) override { std::stringstream *&ss = data[key]; if (!ss) @@ -107,7 +107,7 @@ namespace SQL Query() { } Query(const Anope::string &q) : query(q) { } - Query& operator=(const Anope::string &q) + Query &operator=(const Anope::string &q) { this->query = q; this->parameters.clear(); @@ -124,7 +124,7 @@ namespace SQL return !(*this == other); } - template<typename T> void SetValue(const Anope::string &key, const T& value, bool escape = true) + template<typename T> void SetValue(const Anope::string &key, const T &value, bool escape = true) { try { diff --git a/include/modules/xmlrpc.h b/include/modules/xmlrpc.h index 698a8e6ce..115fe4ad4 100644 --- a/include/modules/xmlrpc.h +++ b/include/modules/xmlrpc.h @@ -18,7 +18,7 @@ public: Anope::string name; Anope::string id; std::deque<Anope::string> data; - HTTPReply& r; + HTTPReply &r; XMLRPCRequest(HTTPReply &_r) : r(_r) { } inline void reply(const Anope::string &dname, const Anope::string &ddata) { this->replies.emplace(dname, ddata); } |
