diff options
| author | 2015-04-20 17:40:12 +0200 | |
|---|---|---|
| committer | 2015-04-20 17:40:12 +0200 | |
| commit | 8f5efbc7aa33b792e02d01e3288f553e6e98ccaa (patch) | |
| tree | 54a67ebd11fac07d630fa03acad7797b2f781e80 /src/hashcomp.cpp | |
| parent | Remove exception handling from StreamSocket methods calling IOHooks (diff) | |
| parent | Release v2.0.19 (diff) | |
Merge insp20
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 42e25f8f6..35e5f3671 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -153,7 +153,7 @@ unsigned const char rfc_case_sensitive_map[256] = { size_t CoreExport irc::hash::operator()(const irc::string &s) const { - register size_t t = 0; + size_t t = 0; for (irc::string::const_iterator x = s.begin(); x != s.end(); ++x) /* ++x not x++, as its faster */ t = 5 * t + national_case_insensitive_map[(unsigned char)*x]; return t; @@ -196,7 +196,7 @@ size_t irc::insensitive::operator()(const std::string &s) const * only with *x replaced with national_case_insensitive_map[*x]. * This avoids a copy to use hash<const char*> */ - register size_t t = 0; + size_t t = 0; for (std::string::const_iterator x = s.begin(); x != s.end(); ++x) /* ++x not x++, as its faster */ t = 5 * t + national_case_insensitive_map[(unsigned char)*x]; return t; |
