From 17040c088a00a83094359382b9add202e3749db7 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 20 Jun 2010 21:33:01 -0400 Subject: Store modules in a list and xlines in a vector, not deques. We need to be able to keep iterators valid. --- include/modules.h | 2 +- include/operserv.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index a8c8a72c2..8643518de 100644 --- a/include/modules.h +++ b/include/modules.h @@ -158,7 +158,7 @@ enum MODType { CORE, PROTOCOL, THIRD, SUPPORTED, QATESTED, ENCRYPTION, DATABASE struct Message; extern CoreExport std::multimap MessageMap; class Module; -extern CoreExport std::deque Modules; +extern CoreExport std::list Modules; /*************************************************************************/ /* Structure for information about a *Serv command. */ diff --git a/include/operserv.h b/include/operserv.h index c8a7e306a..35aff0dda 100644 --- a/include/operserv.h +++ b/include/operserv.h @@ -69,7 +69,7 @@ class CoreExport XLineManager protected: /* List of XLines in this XLineManager */ - std::deque XLines; + std::vector 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& GetList() const; + const std::vector& 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(); -- cgit