diff options
author | Adam <Adam@anope.org> | 2012-11-05 22:17:47 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-11-06 11:02:12 -0500 |
commit | 53b2bdfe5e157a9e5ca5d08873edebcd04511ae1 (patch) | |
tree | f94c8603ffe475405ea668c629eddd7c8ba0891e /src/serialize.cpp | |
parent | 27ab6a686cb271ea8eae7a243906af5bebeb83d7 (diff) |
Use std::tr1::unordered_map for a few of the larger maps
Diffstat (limited to 'src/serialize.cpp')
-rw-r--r-- | src/serialize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialize.cpp b/src/serialize.cpp index 45a43fb8e..a84d103f5 100644 --- a/src/serialize.cpp +++ b/src/serialize.cpp @@ -16,7 +16,7 @@ #include "modules.h" std::vector<Anope::string> SerializeType::type_order; -Anope::map<SerializeType *> SerializeType::types; +std::map<Anope::string, SerializeType *> SerializeType::types; std::list<Serializable *> *Serializable::serializable_items; stringstream::stringstream() : std::stringstream(), type(Serialize::DT_TEXT), _max(0) @@ -204,7 +204,7 @@ Module* SerializeType::GetOwner() const SerializeType *SerializeType::Find(const Anope::string &name) { - Anope::map<SerializeType *>::iterator it = types.find(name); + std::map<Anope::string, SerializeType *>::iterator it = types.find(name); if (it != types.end()) return it->second; return NULL; |