Bug 1290587, part 4 - Lower case Current in XPCNativeSetKey::Hash(). r=mrbkap
MozReview-Commit-ID: 809S9fDCCLj
--- a/js/xpconnect/src/XPCWrappedNativeInfo.cpp
+++ b/js/xpconnect/src/XPCWrappedNativeInfo.cpp
@@ -432,29 +432,29 @@ XPCNativeSetKey::Hash() const
PLDHashNumber h = 0;
if (!mBaseSet) {
MOZ_ASSERT(mAddition, "bad key");
// This would be an XOR like below.
// But "0 ^ x == x". So it does not matter.
h = (js::HashNumber) NS_PTR_TO_INT32(mAddition) >> 2;
} else {
- XPCNativeInterface** Current = mBaseSet->GetInterfaceArray();
+ XPCNativeInterface** current = mBaseSet->GetInterfaceArray();
uint16_t count = mBaseSet->GetInterfaceCount();
if (mAddition) {
count++;
for (uint16_t i = 0; i < count; i++) {
if (i == mPosition)
h ^= (js::HashNumber) NS_PTR_TO_INT32(mAddition) >> 2;
else
- h ^= (js::HashNumber) NS_PTR_TO_INT32(*(Current++)) >> 2;
+ h ^= (js::HashNumber) NS_PTR_TO_INT32(*(current++)) >> 2;
}
} else {
for (uint16_t i = 0; i < count; i++)
- h ^= (js::HashNumber) NS_PTR_TO_INT32(*(Current++)) >> 2;
+ h ^= (js::HashNumber) NS_PTR_TO_INT32(*(current++)) >> 2;
}
}
return h;
}
/***************************************************************************/
// XPCNativeSet