1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 12:16:39 +02:00

Store modules in a list and xlines in a vector, not deques. We need to be able to keep iterators valid.

This commit is contained in:
Adam
2010-06-20 21:33:01 -04:00
parent 0d2d7e9968
commit 17040c088a
7 changed files with 23 additions and 28 deletions
+2 -2
View File
@@ -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;