mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1190608, part 5 - Sink the declaration of i in nsXULElement.cpp. r=poiru
This commit is contained in:
parent
0da5862c52
commit
070bac14d5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user