Bug 1290587, part 4 - Lower case Current in XPCNativeSetKey::Hash(). r=mrbkap draft
authorAndrew McCreight <continuation@gmail.com>
Fri, 29 Jul 2016 10:42:26 -0700
changeset 394786 8a768f235f306b4711579aa983ce01759b08acfc
parent 394785 045ff15d1b44eb4d4d1b2083386c3a3ed2161920
child 394787 db5ef32b7631527617e3cc391cb7a6ceccb9f019
push id24631
push userbmo:continuation@gmail.com
push dateSun, 31 Jul 2016 18:47:25 +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