diff --git a/mozilla/chrome/src/nsChromeRegistry.cpp b/mozilla/chrome/src/nsChromeRegistry.cpp index 339839bed52..93f0751fa8f 100644 --- a/mozilla/chrome/src/nsChromeRegistry.cpp +++ b/mozilla/chrome/src/nsChromeRegistry.cpp @@ -1371,9 +1371,10 @@ nsresult nsChromeRegistry::RefreshWindow(nsIDOMWindowInternal* aWindow) aWindow->GetFrames(getter_AddRefs(frames)); PRUint32 length; frames->GetLength(&length); - for (PRUint32 i = 0; i < length; i++) { + PRUint32 j; + for (j = 0; j < length; j++) { nsCOMPtr childWin; - frames->Item(i, getter_AddRefs(childWin)); + frames->Item(j, getter_AddRefs(childWin)); nsCOMPtr childInt(do_QueryInterface(childWin)); RefreshWindow(childInt); } diff --git a/mozilla/rdf/chrome/src/nsChromeRegistry.cpp b/mozilla/rdf/chrome/src/nsChromeRegistry.cpp index 339839bed52..93f0751fa8f 100644 --- a/mozilla/rdf/chrome/src/nsChromeRegistry.cpp +++ b/mozilla/rdf/chrome/src/nsChromeRegistry.cpp @@ -1371,9 +1371,10 @@ nsresult nsChromeRegistry::RefreshWindow(nsIDOMWindowInternal* aWindow) aWindow->GetFrames(getter_AddRefs(frames)); PRUint32 length; frames->GetLength(&length); - for (PRUint32 i = 0; i < length; i++) { + PRUint32 j; + for (j = 0; j < length; j++) { nsCOMPtr childWin; - frames->Item(i, getter_AddRefs(childWin)); + frames->Item(j, getter_AddRefs(childWin)); nsCOMPtr childInt(do_QueryInterface(childWin)); RefreshWindow(childInt); }