From: Francesco Chemolli Date: Sat, 29 Aug 2015 23:57:45 +0000 (+0200) Subject: Rename lowSBufHash to SBufHashCommon_ X-Git-Tag: SQUID_4_0_1~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e37f2b5a44ed6ea97c55e313f66100c86f8b8cf7;p=thirdparty%2Fsquid.git Rename lowSBufHash to SBufHashCommon_ --- diff --git a/src/SBufAlgos.cc b/src/SBufAlgos.cc index 7619b06296..8f4cf6c7fe 100644 --- a/src/SBufAlgos.cc +++ b/src/SBufAlgos.cc @@ -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::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); }