get rid of build warning for unused var.

This commit is contained in:
bzbarsky%mit.edu 2002-12-03 06:53:22 +00:00
parent 3e31b94167
commit 67bcecbb48
2 changed files with 2 additions and 4 deletions

View File

@ -1660,8 +1660,6 @@ void nsDocument::SetStyleSheetApplicableState(nsIStyleSheet* aSheet,
{
NS_PRECONDITION(aSheet, "null arg");
PRInt32 indx;
PRInt32 count;
// If we're actually in the document style sheet list
if (-1 != mStyleSheets.IndexOf(aSheet)) {
if (aApplicable) {
@ -1674,6 +1672,7 @@ void nsDocument::SetStyleSheetApplicableState(nsIStyleSheet* aSheet,
// XXX Some (nsHTMLEditor, eg) call this function for sheets that
// are not document sheets! So we have to always notify.
PRInt32 indx;
// if an observer removes itself, we're ok (not if it removes others though)
for (indx = mObservers.Count() - 1; indx >= 0; --indx) {
nsIDocumentObserver* observer =

View File

@ -1535,8 +1535,6 @@ nsXULDocument::SetStyleSheetApplicableState(nsIStyleSheet* aSheet,
PRBool aApplicable)
{
NS_PRECONDITION(nsnull != aSheet, "null arg");
PRInt32 count;
PRInt32 i;
// If we're actually in the document style sheet list
if (-1 != mStyleSheets.IndexOf((void *)aSheet)) {
@ -1551,6 +1549,7 @@ nsXULDocument::SetStyleSheetApplicableState(nsIStyleSheet* aSheet,
// XXX Some (nsHTMLEditor, eg) call this function for sheets that
// are not document sheets! So we have to always notify.
PRInt32 i;
// if an observer removes itself, we're ok (not if it removes others though)
for (i = mObservers.Count() - 1; i >= 0; --i) {
nsIDocumentObserver* observer =