summaryrefslogtreecommitdiff
path: root/include/cull_list.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 20:11:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 20:11:07 +0000
commit7a3d08f06cc22688a70c5274fe0dd489f93e9794 (patch)
tree3c566a885b1c871e0f723c6cec92a07a22939118 /include/cull_list.h
parent9fd6aff54fa4b554a45841e2f13b401cb34466ab (diff)
Tidyup to pass some stuff by reference (much faster, no copy involved)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3601 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/cull_list.h')
-rw-r--r--include/cull_list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cull_list.h b/include/cull_list.h
index cc0f01c06..e20eb1dd0 100644
--- a/include/cull_list.h
+++ b/include/cull_list.h
@@ -50,7 +50,7 @@ class CullItem
* @param u The user to add
* @param r The quit reason of the added user
*/
- CullItem(userrec* u, std::string r);
+ CullItem(userrec* u, std::string &r);
/** Returns a pointer to the user
*/
userrec* GetUser();
@@ -104,7 +104,7 @@ class CullList
* @param user The user to add
* @param reason The quit reason of the user being added
*/
- void AddItem(userrec* user, std::string reason);
+ void AddItem(userrec* user, std::string &reason);
/** Applies the cull list, quitting all the users
* on the list with their quit reasons all at once.
* This is a very fast operation compared to