diff options
author | Adam <Adam@anope.org> | 2010-06-20 21:33:01 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-20 21:33:01 -0400 |
commit | 17040c088a00a83094359382b9add202e3749db7 (patch) | |
tree | d4671d12949c363f3b81cd5bacce38b2c18f75c5 /src/modules.cpp | |
parent | 0d2d7e996835c8c77c1eee5a4c90c3e2a60be4ff (diff) |
Store modules in a list and xlines in a vector, not deques. We need to be able to keep iterators valid.
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index f66bd01a2..cf5fd245f 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -14,7 +14,7 @@ #include "version.h" std::multimap<std::string, Message *> MessageMap; -std::deque<Module *> Modules; +std::list<Module *> Modules; char *mod_current_buffer = NULL; @@ -93,7 +93,7 @@ void Module::InsertLanguage(int langNumber, int ac, const char **av) */ Module *FindModule(const std::string &name) { - for (std::deque<Module *>::iterator it = Modules.begin(), it_end = Modules.end(); it != it_end; ++it) + for (std::list<Module *>::const_iterator it = Modules.begin(), it_end = Modules.end(); it != it_end; ++it) { Module *m = *it; |