summaryrefslogtreecommitdiff
path: root/include/serialize.h
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-12-14 18:37:23 +0000
committerPeter Powell <petpow@saberuk.com>2019-12-14 18:38:13 +0000
commit6617d29b5227f962c348e638a373ebb78989b7ba (patch)
treee2d6da92be797d519cbd8e154d1ba97a8c656884 /include/serialize.h
parenta4ab6876c3f4afc087a3db90404bbdeb47525e6e (diff)
Fix a bunch of broken indentation.
Diffstat (limited to 'include/serialize.h')
-rw-r--r--include/serialize.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/serialize.h b/include/serialize.h
index d9c888b65..79273f429 100644
--- a/include/serialize.h
+++ b/include/serialize.h
@@ -22,7 +22,7 @@ namespace Serialize
class Data
{
public:
- enum Type
+ enum Type
{
DT_TEXT,
DT_INT
@@ -62,7 +62,7 @@ class CoreExport Serializable : public virtual Base
friend class Serialize::Type;
/* The type of item this object is */
Serialize::Type *s_type;
- /* Iterator into serializable_items */
+ /* Iterator into serializable_items */
std::list<Serializable *>::iterator s_iter;
/* The hash of the last serialized form of this object committed to the database */
size_t last_commit;
@@ -70,7 +70,7 @@ class CoreExport Serializable : public virtual Base
time_t last_commit_time;
protected:
- Serializable(const Anope::string &serialize_type);
+ Serializable(const Anope::string &serialize_type);
Serializable(const Serializable &);
Serializable &operator=(const Serializable &);
@@ -78,7 +78,7 @@ class CoreExport Serializable : public virtual Base
public:
virtual ~Serializable();
- /* Unique ID (per type, not globally) for this object */
+ /* Unique ID (per type, not globally) for this object */
uint64_t id;
/* Only used by redis, to ignore updates */
@@ -130,7 +130,7 @@ class CoreExport Serialize::Type : public Base
time_t timestamp;
public:
- /* Map of Serializable::id to Serializable objects */
+ /* Map of Serializable::id to Serializable objects */
std::map<uint64_t, Serializable *> objects;
/** Creates a new serializable type
@@ -247,7 +247,7 @@ class Serialize::Reference : public ReferenceBase
T *ref;
public:
- Reference() : ref(NULL)
+ Reference() : ref(NULL)
{
}