]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Rename lowSBufHash to SBufHashCommon_
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 29 Aug 2015 23:57:45 +0000 (01:57 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sat, 29 Aug 2015 23:57:45 +0000 (01:57 +0200)
src/SBufAlgos.cc

index 7619b0629697eb0b8e6b84deea6c40cce9a011ac..8f4cf6c7fecce9410ce7c94c86de95c6d5217c81 100644 (file)
@@ -9,8 +9,9 @@
 #include "squid.h"
 #include "SBufAlgos.h"
 
+// private common implementation for SBuf hash variants
 static std::size_t
-lowSBufHash (const SBuf & sbuf, bool caseInsensitive = false) noexcept
+SBufHashCommon_ (const SBuf & sbuf, bool caseInsensitive) noexcept
 {
     //ripped and adapted from hash_string
     const char *s = sbuf.rawContent();
@@ -27,12 +28,12 @@ lowSBufHash (const SBuf & sbuf, bool caseInsensitive = false) noexcept
 std::size_t
 std::hash<SBuf>::operator() (const SBuf & sbuf) const noexcept
 {
-    return lowSBufHash(sbuf);
+    return SBufHashCommon_(sbuf, false);
 }
 
 std::size_t
 CaseInsensitiveSBufHash::operator() (const SBuf & sbuf) const noexcept
 {
-    return lowSBufHash(sbuf, true);
+    return SBufHashCommon_(sbuf, true);
 }