1
0
mirror of https://github.com/anope/anope.git synced 2026-07-02 12:33:13 +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
+1 -1
View File
@@ -158,7 +158,7 @@ enum MODType { CORE, PROTOCOL, THIRD, SUPPORTED, QATESTED, ENCRYPTION, DATABASE
struct Message;
extern CoreExport std::multimap<std::string, Message *> MessageMap;
class Module;
extern CoreExport std::deque<Module *> Modules;
extern CoreExport std::list<Module *> Modules;
/*************************************************************************/
/* Structure for information about a *Serv command. */
+5 -5
View File
@@ -69,7 +69,7 @@ class CoreExport XLineManager
protected:
/* List of XLines in this XLineManager */
std::deque<XLine *> XLines;
std::vector<XLine *> XLines;
public:
/** Constructor
*/
@@ -103,10 +103,10 @@ class CoreExport XLineManager
*/
const size_t GetCount() const;
/** Get the XLine list
* @return The list
/** Get the XLine vector
* @return The vector
*/
const std::deque<XLine *>& GetList() const;
const std::vector<XLine *>& GetList() const;
/** Add an entry to this XLineManager
* @param x The entry
@@ -125,7 +125,7 @@ class CoreExport XLineManager
*/
XLine *GetEntry(unsigned index) const;
/** Clear the XLine list
/** Clear the XLine vector
*/
void Clear();