diff --git a/content/xul/templates/src/nsXULTemplateBuilder.cpp b/content/xul/templates/src/nsXULTemplateBuilder.cpp index 2445c78a845..e3a6fddd472 100644 --- a/content/xul/templates/src/nsXULTemplateBuilder.cpp +++ b/content/xul/templates/src/nsXULTemplateBuilder.cpp @@ -230,13 +230,15 @@ nsXULTemplateBuilder::GetDatabase(nsIRDFCompositeDataSource** aResult) NS_IMETHODIMP nsXULTemplateBuilder::Rebuild() { - for (PRInt32 i = mListeners.Count() - 1; i >= 0; --i) { + PRInt32 i; + + for (i = mListeners.Count() - 1; i >= 0; --i) { mListeners[i]->WillRebuild(this); } nsresult rv = RebuildAll(); - for (PRInt32 i = mListeners.Count() - 1; i >= 0; --i) { + for (i = mListeners.Count() - 1; i >= 0; --i) { mListeners[i]->DidRebuild(this); }