diff --git a/chrome/src/nsChromeRegistry.cpp b/chrome/src/nsChromeRegistry.cpp index 339839bed523..93f0751fa8f2 100644 --- a/chrome/src/nsChromeRegistry.cpp +++ b/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/rdf/chrome/src/nsChromeRegistry.cpp b/rdf/chrome/src/nsChromeRegistry.cpp index 339839bed523..93f0751fa8f2 100644 --- a/rdf/chrome/src/nsChromeRegistry.cpp +++ b/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); }