зеркало из https://github.com/mozilla/gecko-dev.git
get rid of build warning for unused var.
This commit is contained in:
Родитель
3e31b94167
Коммит
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 =
|
||||
|
|
Загрузка…
Ссылка в новой задаче