mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
get rid of build warning for unused var.
This commit is contained in:
parent
3e31b94167
commit
67bcecbb48
@ -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 =
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user