diff options
| author | 2006-03-09 20:11:07 +0000 | |
|---|---|---|
| committer | 2006-03-09 20:11:07 +0000 | |
| commit | 7a3d08f06cc22688a70c5274fe0dd489f93e9794 (patch) | |
| tree | 3c566a885b1c871e0f723c6cec92a07a22939118 /src/cull_list.cpp | |
| parent | Strlen bashing. (diff) | |
| download | inspircd++-7a3d08f06cc22688a70c5274fe0dd489f93e9794.tar.gz inspircd++-7a3d08f06cc22688a70c5274fe0dd489f93e9794.tar.bz2 inspircd++-7a3d08f06cc22688a70c5274fe0dd489f93e9794.zip | |
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 'src/cull_list.cpp')
| -rw-r--r-- | src/cull_list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cull_list.cpp b/src/cull_list.cpp index 224a9e3da..a8188701a 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -81,7 +81,7 @@ bool CullList::IsValid(userrec* user) return false; } -CullItem::CullItem(userrec* u, std::string r) +CullItem::CullItem(userrec* u, std::string &r) { this->user = u; this->reason = r; @@ -103,7 +103,7 @@ CullList::CullList() exempt.clear(); } -void CullList::AddItem(userrec* user, std::string reason) +void CullList::AddItem(userrec* user, std::string &reason) { if (exempt.find(user) == exempt.end()) { |
