diff options
author | Sadie Powell <sadie@witchery.services> | 2022-01-03 18:34:16 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2022-01-04 00:17:13 +0000 |
commit | 7531e90499d4cd60b6464c692725225e85c00738 (patch) | |
tree | 930fd946ea495b74c4071a67e12cadb700ab79ab /src/serialize.cpp | |
parent | dfcc025a19d7d49179d75f34553c36e0d47eaded (diff) |
Use C++11 style class/struct initialisation.
Diffstat (limited to 'src/serialize.cpp')
-rw-r--r-- | src/serialize.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialize.cpp b/src/serialize.cpp index 86cc7e7b5..4c3e6f0f8 100644 --- a/src/serialize.cpp +++ b/src/serialize.cpp @@ -41,7 +41,7 @@ void Serialize::CheckTypes() } } -Serializable::Serializable(const Anope::string &serialize_type) : last_commit(0), last_commit_time(0), id(0), redis_ignore(0) +Serializable::Serializable(const Anope::string &serialize_type) { if (SerializableItems == NULL) SerializableItems = new std::list<Serializable *>(); @@ -55,7 +55,7 @@ Serializable::Serializable(const Anope::string &serialize_type) : last_commit(0) FOREACH_MOD(OnSerializableConstruct, (this)); } -Serializable::Serializable(const Serializable &other) : last_commit(0), last_commit_time(0), id(0), redis_ignore(0) +Serializable::Serializable(const Serializable &other) { SerializableItems->push_back(this); this->s_iter = SerializableItems->end(); @@ -112,7 +112,7 @@ const std::list<Serializable *> &Serializable::GetItems() return *SerializableItems; } -Type::Type(const Anope::string &n, unserialize_func f, Module *o) : name(n), unserialize(f), owner(o), timestamp(0) +Type::Type(const Anope::string &n, unserialize_func f, Module *o) : name(n), unserialize(f), owner(o) { TypeOrder.push_back(this->name); Types[this->name] = this; |