diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 22:58:24 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 22:58:24 +0000 |
commit | ab01aaeeee9aed655df2eec2522072233fe3aa57 (patch) | |
tree | ba5f3d6f130e6363491afe8d2d1808c8033a8878 /src/modules.cpp | |
parent | a551203100f50ff4767d516566f38277bd268110 (diff) |
Changed to use __single_client_alloc, faster on most systems in a single thread
Specified namespace std in *all* files
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1404 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 63c764bbb..414cce617 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -14,6 +14,8 @@ * --------------------------------------------------- */ +using namespace std; + #include "inspircd.h" #include "inspircd_io.h" #include "inspircd_util.h" @@ -52,8 +54,6 @@ #include "helperfuncs.h" #include "hashcomp.h" -using namespace std; - #ifdef USE_KQUEUE extern int kq; #endif @@ -391,8 +391,8 @@ chanuserlist Server::GetUsers(chanrec* chan) { chanuserlist userl; userl.clear(); - std::vector<char*> *list = chan->GetUsers(); - for (std::vector<char*>::iterator i = list->begin(); i != list->end(); i++) + std::vector<char*, __single_client_alloc> *list = chan->GetUsers(); + for (std::vector<char*, __single_client_alloc>::iterator i = list->begin(); i != list->end(); i++) { char* o = *i; userl.push_back((userrec*)o); @@ -989,8 +989,8 @@ int FileReader::FileSize() } -std::vector<Module*> modules(255); -std::vector<ircd_module*> factory(255); +std::vector<Module*, __single_client_alloc> modules(255); +std::vector<ircd_module*, __single_client_alloc> factory(255); int MODCOUNT = -1; |