diff options
author | Sadie Powell <sadie@witchery.services> | 2023-12-17 13:59:49 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2023-12-17 13:59:49 +0000 |
commit | 6538641e8703084460df70d04196ac271eff1266 (patch) | |
tree | 2bf8ab8fdd0fb4839d86607826bc09c3366e3870 /include/serialize.h | |
parent | eb0e5c89b2a1e59091001ffd0e54582c2ff04212 (diff) |
Remove some unnecessary spaces that break editor indentation.
Diffstat (limited to 'include/serialize.h')
-rw-r--r-- | include/serialize.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/serialize.h b/include/serialize.h index 1cb4bdce5..3510858f0 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -20,7 +20,7 @@ namespace Serialize { class Data { - public: + public: enum Type { DT_TEXT, @@ -51,7 +51,7 @@ namespace Serialize */ class CoreExport Serializable : public virtual Base { - private: +private: /* A list of every serializable item in Anope. * Some of these are static and constructed at runtime, * so this list must be on the heap, as it is not always @@ -68,13 +68,13 @@ class CoreExport Serializable : public virtual Base /* The last time this object was committed to the database */ time_t last_commit_time = 0; - protected: +protected: Serializable(const Anope::string &serialize_type); Serializable(const Serializable &); Serializable &operator=(const Serializable &); - public: +public: virtual ~Serializable(); /* Unique ID (per type, not globally) for this object */ @@ -128,7 +128,7 @@ class CoreExport Serialize::Type : public Base */ time_t timestamp = 0; - public: +public: /* Map of Serializable::id to Serializable objects */ std::map<uint64_t, Serializable *> objects; @@ -196,7 +196,7 @@ class Serialize::Checker type->Check(); } - public: +public: Checker(const Anope::string &n) : name(n) { } inline const T* operator->() const @@ -242,10 +242,10 @@ class Serialize::Checker template<typename T> class Serialize::Reference : public ReferenceBase { - protected: +protected: T *ref = nullptr; - public: +public: Reference() = default; Reference(T *obj) : ref(obj) |