summaryrefslogtreecommitdiff
path: root/src/hashcomp.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-03-23 00:42:59 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-03-23 00:42:59 +0100
commit4dd7fb60a8e46856cb2df3fcda56b9b119072552 (patch)
tree1241083d40e5c390c91e651975d6b8d465525af5 /src/hashcomp.cpp
parent74fa7f46dc0ad87c9e55b3fb26f65d7a3d05ab97 (diff)
parentc38d29fd760a52958377a0664cbcdf74e9a12c84 (diff)
Merge pull request #1004 from SaberUK/insp20+fix-various-warnings
[2.0] Fix various warnings with the new Doxygen and LLVM releases.
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r--src/hashcomp.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index 3fb7f84fb..e0347421b 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -140,7 +140,7 @@ void nspace::strlower(char *n)
* 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;
@@ -149,7 +149,7 @@ void nspace::strlower(char *n)
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;