Bug 1290587, part 4 - Lower case Current in XPCNativeSetKey::Hash(). r=mrbkap
authorAndrew McCreight <continuation@gmail.com>
Fri, 29 Jul 2016 10:42:26 -0700
changeset 395271 2376df9ef2b7ac81dc0a25235805e9fc1bd91eb1
parent 395270 81072f3a058adaa3570679cf6632a9dad5ab4aa6
child 395272 4dff23362d43e875e2ec549e8584ff973d25fb69
push id24732
push userbmo:gps@mozilla.com
push dateMon, 01 Aug 2016 21:50:09 +0000
reviewersmrbkap
bugs1290587
milestone50.0a1
Bug 1290587, part 4 - Lower case Current in XPCNativeSetKey::Hash(). r=mrbkap MozReview-Commit-ID: 809S9fDCCLj
js/xpconnect/src/XPCWrappedNativeInfo.cpp
--- 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