diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-17 14:23:22 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-17 14:23:22 +0000 |
commit | 05165a4d5bb0a44aeebd6c99577850e8ea7c71f7 (patch) | |
tree | 325c97545488f15d7b6b0e96d910ebc7148575bf /src | |
parent | 4fe818987665fb5597fc734dd0d37e339cf6dcd5 (diff) |
Just comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4935 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index f833efb99..261ee491e 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -477,7 +477,12 @@ bool userrec::HasPermission(const std::string &command) return false; } - +/** NOTE: We cannot pass a const reference to this method. + * The string is changed by the workings of the method, + * so that if we pass const ref, we end up copying it to + * something we can change anyway. Makes sense to just let + * the compiler do that copy for us. + */ bool userrec::AddBuffer(std::string a) { std::string::size_type i = a.rfind('\r'); @@ -1269,7 +1274,12 @@ const char* userrec::GetIPString(char* buf) return ""; } - +/** NOTE: We cannot pass a const reference to this method. + * The string is changed by the workings of the method, + * so that if we pass const ref, we end up copying it to + * something we can change anyway. Makes sense to just let + * the compiler do that copy for us. + */ void userrec::Write(std::string text) { if ((this->fd < 0) || (this->fd > MAX_DESCRIPTORS)) |