@@ -222,7 +222,7 @@ IdentPtr HashTbl::PidHashNameLen(CharType const * prgch, CharType const * end, u
222222 // NOTE: We use case sensitive hash during compilation, but the runtime
223223 // uses case insensitive hashing so it can do case insensitive lookups.
224224
225- uint32 luHash = CaseSensitiveComputeHashCch (prgch, end, cch );
225+ uint32 luHash = CaseSensitiveComputeHash (prgch, end);
226226 return PidHashNameLenWithHash (prgch, end, cch, luHash);
227227}
228228template IdentPtr HashTbl::PidHashNameLen<utf8char_t >(utf8char_t const * prgch, utf8char_t const * end, uint32 cch);
@@ -244,7 +244,7 @@ IdentPtr HashTbl::PidHashNameLenWithHash(_In_reads_(cch) CharType const * prgch,
244244{
245245 Assert (cch >= 0 );
246246 AssertArrMemR (prgch, cch);
247- Assert (luHash == CaseSensitiveComputeHashCch (prgch, end, cch ));
247+ Assert (luHash == CaseSensitiveComputeHash (prgch, end));
248248
249249 IdentPtr * ppid;
250250 IdentPtr pid;
@@ -352,7 +352,7 @@ IdentPtr HashTbl::FindExistingPid(
352352 for (bucketCount = 0 ; nullptr != (pid = *ppid); ppid = &pid->m_pidNext , bucketCount++)
353353 {
354354 if (pid->m_luHash == luHash && (int )pid->m_cch == cch &&
355- HashTbl::CharsAreEqual (pid->m_sz , prgch, end, cch ))
355+ HashTbl::CharsAreEqual (pid->m_sz , prgch, end))
356356 {
357357 return pid;
358358 }
@@ -394,12 +394,12 @@ template IdentPtr HashTbl::FindExistingPid<char16>(
394394
395395bool HashTbl::Contains (_In_reads_(cch) LPCOLESTR prgch, int32 cch)
396396{
397- uint32 luHash = CaseSensitiveComputeHashCch (prgch, prgch + cch, cch);
397+ uint32 luHash = CaseSensitiveComputeHash (prgch, prgch + cch);
398398
399399 for (auto pid = m_prgpidName[luHash & m_luMask]; pid; pid = pid->m_pidNext )
400400 {
401401 if (pid->m_luHash == luHash && (int )pid->m_cch == cch &&
402- HashTbl::CharsAreEqual (pid->m_sz , prgch + cch, prgch, cch ))
402+ HashTbl::CharsAreEqual (pid->m_sz , prgch + cch, prgch))
403403 {
404404 return true ;
405405 }
@@ -419,7 +419,7 @@ bool HashTbl::Contains(_In_reads_(cch) LPCOLESTR prgch, int32 cch)
419419// This method is used during colorizing when scanner isn't interested in storing the actual id and does not care about conversion of escape sequences
420420tokens HashTbl::TkFromNameLenColor (_In_reads_(cch) LPCOLESTR prgch, uint32 cch)
421421{
422- uint32 luHash = CaseSensitiveComputeHashCch (prgch, prgch + cch, cch);
422+ uint32 luHash = CaseSensitiveComputeHash (prgch, prgch + cch);
423423
424424 // look for a keyword
425425#include " kwds_sw.h"
@@ -446,7 +446,7 @@ tokens HashTbl::TkFromNameLenColor(_In_reads_(cch) LPCOLESTR prgch, uint32 cch)
446446// This method is used during colorizing when scanner isn't interested in storing the actual id and does not care about conversion of escape sequences
447447tokens HashTbl::TkFromNameLen (_In_reads_(cch) LPCOLESTR prgch, uint32 cch, bool isStrictMode)
448448{
449- uint32 luHash = CaseSensitiveComputeHashCch (prgch, prgch + cch, cch);
449+ uint32 luHash = CaseSensitiveComputeHash (prgch, prgch + cch);
450450
451451 // look for a keyword
452452#include " kwds_sw.h"
0 commit comments