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/serialize.h | |
parent | e341cac8d6565044f7390852afb40c5e388121df (diff) |
Fix some coding style issues.
Diffstat (limited to 'include/serialize.h')
-rw-r--r-- | include/serialize.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/include/serialize.h b/include/serialize.h index 91ced7370..02e58a21f 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -29,7 +29,7 @@ namespace Serialize virtual ~Data() = default; - virtual std::iostream& operator[](const Anope::string &key) = 0; + virtual std::iostream &operator[](const Anope::string &key) = 0; virtual std::set<Anope::string> KeySet() const { throw CoreException("Not supported"); } virtual size_t Hash() const { throw CoreException("Not supported"); } @@ -97,7 +97,7 @@ public: /** Get the type of serializable object this is * @return The serializable object type */ - Serialize::Type* GetSerializableType() const { return this->s_type; } + Serialize::Type *GetSerializableType() const { return this->s_type; } virtual void Serialize(Serialize::Data &data) const = 0; @@ -111,7 +111,7 @@ public: class CoreExport Serialize::Type final : public Base { - typedef Serializable* (*unserialize_func)(Serializable *obj, Serialize::Data &); + typedef Serializable *(*unserialize_func)(Serializable *obj, Serialize::Data &); static std::vector<Anope::string> TypeOrder; static std::map<Anope::string, Serialize::Type *> Types; @@ -168,7 +168,7 @@ public: */ void UpdateTimestamp(); - Module* GetOwner() const { return this->owner; } + Module *GetOwner() const { return this->owner; } static Serialize::Type *Find(const Anope::string &name); @@ -201,23 +201,23 @@ class Serialize::Checker public: Checker(const Anope::string &n) : name(n) { } - inline const T* operator->() const + inline const T *operator->() const { this->Check(); return &this->obj; } - inline T* operator->() + inline T *operator->() { this->Check(); return &this->obj; } - inline const T& operator*() const + inline const T &operator*() const { this->Check(); return this->obj; } - inline T& operator*() + inline T &operator*() { this->Check(); return this->obj; @@ -305,7 +305,7 @@ public: return NULL; } - inline T* operator*() const + inline T *operator*() const { if (!this->invalid) { @@ -318,7 +318,7 @@ public: return NULL; } - inline T* operator->() const + inline T *operator->() const { if (!this->invalid) { |