diff options
author | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-20 18:42:58 -0400 |
---|---|---|
committer | Naram Qashat <cyberbotx@cyberbotx.com> | 2010-06-20 18:42:58 -0400 |
commit | 381c9c8870fad4c544f29deec22ba4be3549a731 (patch) | |
tree | f5f26e2dd380910b0ddd26e3d885d6bf56d40181 /src/hashcomp.cpp | |
parent | 2528dc80bd1b3e6b2c09db23eb51659e30128110 (diff) |
The first of a few "CBX OCDing over code style" commits, focusing on include/* and src/* but not src/core/* or src/modules/*.
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r-- | src/hashcomp.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 462064235..3afef7b46 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -6,8 +6,6 @@ * * These classes have been copied from InspIRCd and modified * for use in Anope. - * - * */ #include "services.h" @@ -175,7 +173,7 @@ size_t hash_compare_std_string::operator()(const std::string &s) const for (std::string::const_iterator it = s.begin(); it != s.end(); ++it) t = 5 * t + static_cast<const unsigned char>(*it); - + return t; } @@ -189,7 +187,7 @@ size_t hash_compare_ci_string::operator()(const ci::string &s) const for (ci::string::const_iterator it = s.begin(); it != s.end(); ++it) t = 5 * t + ascii_case_insensitive_map[static_cast<const unsigned char>(*it)]; - + return t; } @@ -203,7 +201,6 @@ size_t hash_compare_irc_string::operator()(const irc::string &s) const for (irc::string::const_iterator it = s.begin(); it != s.end(); ++it) t = 5 * t + rfc_case_insensitive_map[static_cast<const unsigned char>(*it)]; - + return t; } - |