diff options
author | Adam <Adam@anope.org> | 2011-11-17 12:46:18 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-11-17 12:46:18 -0500 |
commit | 69dfc729e99f45f16cab37f81b9f09a659d99a24 (patch) | |
tree | 063d1bba66dcfaece259a91e370919fc1ae77d5c /include/serialize.h | |
parent | 5281282a61601e9a6b77d129ed97e0509a0474cb (diff) |
Fixed storing mode locks
Diffstat (limited to 'include/serialize.h')
-rw-r--r-- | include/serialize.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/serialize.h b/include/serialize.h index 41d79d138..752f26bfa 100644 --- a/include/serialize.h +++ b/include/serialize.h @@ -68,16 +68,10 @@ class CoreExport Serializable private: static std::list<Serializable *> *serizliable_items; - Anope::string serizliable_name; std::list<Serializable *>::iterator s_iter; - Serializable() - { - throw CoreException(); - } - protected: - Serializable(const Anope::string &n) : serizliable_name(n) + Serializable() { if (serizliable_items == NULL) serizliable_items = new std::list<Serializable *>(); @@ -104,11 +98,7 @@ class CoreExport Serializable public: typedef std::map<Anope::string, Serialize::stringstream> serialized_data; - const Anope::string &GetSerializeName() - { - return this->serizliable_name; - } - + virtual Anope::string serialize_name() const = 0; virtual serialized_data serialize() = 0; static const std::list<Serializable *> &GetItems() |