From 711e33b9f8461df55c2fa8e5351769c6e6eb3e0f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Tue, 16 Dec 2014 16:42:35 +0100 Subject: Change listmode storage type to vector --- include/listmode.h | 2 +- src/listmode.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/listmode.h b/include/listmode.h index 04044948c..94af1d524 100644 --- a/include/listmode.h +++ b/include/listmode.h @@ -37,7 +37,7 @@ class CoreExport ListModeBase : public ModeHandler /** Items stored in the channel's list */ - typedef std::list ModeList; + typedef std::vector ModeList; private: class ChanData diff --git a/src/listmode.cpp b/src/listmode.cpp index 19f2d6061..4e2b95e7d 100644 --- a/src/listmode.cpp +++ b/src/listmode.cpp @@ -192,7 +192,7 @@ ModeAction ListModeBase::OnModeChange(User* source, User*, Channel* channel, std { if (parameter == it->mask) { - cd->list.erase(it); + stdalgo::vector::swaperase(cd->list, it); return MODEACTION_ALLOW; } } -- cgit v1.2.3