Bug 1190608, part 5 - Sink the declaration of i in nsXULElement.cpp. r=poiru

This commit is contained in:
Andrew McCreight 2015-08-04 13:06:15 -07:00
parent 800d334a2a
commit 65ca44a867

View File

@ -2290,7 +2290,6 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream,
}
mNumAttributes = int32_t(number);
uint32_t i;
if (mNumAttributes > 0) {
mAttributes = new (fallible) nsXULPrototypeAttribute[mNumAttributes];
if (!mAttributes) {
@ -2298,7 +2297,7 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream,
}
nsAutoString attributeValue;
for (i = 0; i < mNumAttributes; ++i) {
for (uint32_t i = 0; i < mNumAttributes; ++i) {
tmp = aStream->Read32(&number);
if (NS_FAILED(tmp)) {
rv = tmp;
@ -2330,7 +2329,7 @@ nsXULPrototypeElement::Deserialize(nsIObjectInputStream* aStream,
if (numChildren > 0) {
mChildren.SetCapacity(numChildren);
for (i = 0; i < numChildren; i++) {
for (uint32_t i = 0; i < numChildren; i++) {
tmp = aStream->Read32(&number);
if (NS_FAILED(tmp)) {
rv = tmp;