diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-28 03:27:28 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-12-28 03:27:28 +0000 |
commit | 376a2833d9274a83e3571da1b69ce2768a7c8bac (patch) | |
tree | ae7f39d44df229069636b50deb43b44d1dfdba24 /include/u_listmode.h | |
parent | 98632e1ba440e0da081b955e0bc4d828b8951f6d (diff) |
Change a few bits to use std::list instead of std::vector.
Vector is better than list, unless:
- you require random access (these don't)
- you require that the memory they are stored in are contiguous (these don't)
This will save a couple of bytes here and there perhaps (along with
much less problems with memory fragmentation and allocation).
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10923 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/u_listmode.h')
-rw-r--r-- | include/u_listmode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/u_listmode.h b/include/u_listmode.h index 6e654f64f..738eddeb0 100644 --- a/include/u_listmode.h +++ b/include/u_listmode.h @@ -44,10 +44,10 @@ public: /** Items stored in the channel's list */ -typedef std::vector<ListItem> modelist; +typedef std::list<ListItem> modelist; /** Max items per channel by name */ -typedef std::vector<ListLimit> limitlist; +typedef std::list<ListLimit> limitlist; /** A request used to check if a user is on a channel's list or not */ |