diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 12:29:48 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 12:29:48 +0000 |
commit | efec4e0e08085a96b7c2875558f90033e7b14d44 (patch) | |
tree | 572e38570932e7ffb426c2bc0cfa4ca0bd67b076 /src | |
parent | e51d2a73eace05860ea571ede294115f395c5a5c (diff) |
Change a !string.length to string.empty. these are more readable and on some implementations faster
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8243 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 3b9f5a16a..78af0ba8d 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -515,7 +515,7 @@ std::string User::GetBuffer() { try { - if (!recvq.length()) + if (recvq.empty()) return ""; /* Strip any leading \r or \n off the string. |