From 7a3d08f06cc22688a70c5274fe0dd489f93e9794 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 9 Mar 2006 20:11:07 +0000 Subject: 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 --- include/cull_list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit v1.2.3