1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 22:06:37 +02:00

Allow the patricia tree to store non-pointers

This commit is contained in:
Adam
2010-11-21 00:20:36 -05:00
parent 246f44b988
commit 7790a7f98c
26 changed files with 47 additions and 52 deletions
+3 -3
View File
@@ -12,8 +12,8 @@
#include "services.h"
#include "modules.h"
patricia_tree<User, std::equal_to<ci::string> > UserListByNick;
patricia_tree<User> UserListByUID;
patricia_tree<User *, std::equal_to<ci::string> > UserListByNick;
patricia_tree<User *> UserListByUID;
int32 opcnt = 0;
uint32 usercnt = 0, maxusercnt = 0;
@@ -682,7 +682,7 @@ void get_user_stats(long &count, long &mem)
{
count = mem = 0;
for (patricia_tree<User>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it)
for (patricia_tree<User *>::const_iterator it = UserListByNick.begin(), it_end = UserListByNick.end(); it != it_end; ++it)
{
User *user = *it;