diff options
| author | 2006-08-10 19:17:04 +0000 | |
|---|---|---|
| committer | 2006-08-10 19:17:04 +0000 | |
| commit | 51924df0a878f66f83ea5639dcb7a761cfa65772 (patch) | |
| tree | 38819e3512dcb32baf58d8dfddb5a33583e6ff72 /src/hashcomp.cpp | |
| parent | Much faster hash<string> for case-insensitive hashing, combined copy and lowe... (diff) | |
Make it more readable
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4853 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/hashcomp.cpp')
| -rw-r--r-- | src/hashcomp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index bf90eaeb8..ac51cafe8 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -91,8 +91,8 @@ size_t nspace::hash<string>::operator()(const string &s) const size_t t = 0; static struct hash<const char *> strhash; - for (const char* x = s.c_str(); *x; x++, t++) /* Faster to do it this way than */ - a[t] = lowermap[(unsigned char)*x]; /* Seperate strlcpy and strlower */ + for (const char* x = s.c_str(); *x; x++) /* Faster to do it this way than */ + a[t++] = lowermap[(unsigned char)*x]; /* Seperate strlcpy and strlower */ a[t] = 0; |
