aboutsummaryrefslogtreecommitdiff
path: root/src/hashcomp.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 23:02:45 +0000
committerGravatar Sadie Powell2023-01-10 23:30:34 +0000
commitb2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch)
tree3319a65d5472ec30780560003264fa815dbfd711 /src/hashcomp.cpp
parentFix some unnecessary string copies. (diff)
Qualify auto correctly in all cases.
Diffstat (limited to 'src/hashcomp.cpp')
-rw-r--r--src/hashcomp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp
index c792f68df..592485124 100644
--- a/src/hashcomp.cpp
+++ b/src/hashcomp.cpp
@@ -162,7 +162,7 @@ size_t irc::insensitive::operator()(const std::string& s) const
* This avoids a copy to use hash<const char*>
*/
size_t t = 0;
- for (const auto& c : s)
+ for (const auto c : s)
t = 5 * t + national_case_insensitive_map[static_cast<unsigned char>(c)];
return t;
}