From 04d445235ff19be28011a8796cdeb5cf485bdd6d Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Fri, 12 Feb 1999 18:15:02 +0000 Subject: [PATCH] Fixed some compile errors using nsCOMPtr git-svn-id: svn://10.0.0.236/trunk@20574 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/base/src/nsDocument.cpp | 6 +++--- mozilla/layout/base/src/nsDocument.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/mozilla/content/base/src/nsDocument.cpp b/mozilla/content/base/src/nsDocument.cpp index 296c05126b5..e9838d40bf3 100644 --- a/mozilla/content/base/src/nsDocument.cpp +++ b/mozilla/content/base/src/nsDocument.cpp @@ -732,7 +732,7 @@ nsDocument::Reset(nsIURL *aURL) nsIPresShell* shell = (nsIPresShell*)mPresShells.ElementAt(psindex); nsCOMPtr set; if (NS_SUCCEEDED(shell->GetStyleSet(getter_AddRefs(set)))) { - if (nsnull != set) { + if (set) { set->RemoveDocStyleSheet(sheet); } } @@ -997,7 +997,7 @@ void nsDocument::AddStyleSheet(nsIStyleSheet* aSheet) nsIPresShell* shell = (nsIPresShell*)mPresShells.ElementAt(index); nsCOMPtr set; if (NS_SUCCEEDED(shell->GetStyleSet(getter_AddRefs(set)))) { - if (nsnull != set) { + if (set) { set->AddDocStyleSheet(aSheet, this); } } @@ -1025,7 +1025,7 @@ void nsDocument::SetStyleSheetDisabledState(nsIStyleSheet* aSheet, nsIPresShell* shell = (nsIPresShell*)mPresShells.ElementAt(index); nsCOMPtr set; if (NS_SUCCEEDED(shell->GetStyleSet(getter_AddRefs(set)))) { - if (nsnull != set) { + if (set) { if (aDisabled) { set->RemoveDocStyleSheet(aSheet); } diff --git a/mozilla/layout/base/src/nsDocument.cpp b/mozilla/layout/base/src/nsDocument.cpp index 296c05126b5..e9838d40bf3 100644 --- a/mozilla/layout/base/src/nsDocument.cpp +++ b/mozilla/layout/base/src/nsDocument.cpp @@ -732,7 +732,7 @@ nsDocument::Reset(nsIURL *aURL) nsIPresShell* shell = (nsIPresShell*)mPresShells.ElementAt(psindex); nsCOMPtr set; if (NS_SUCCEEDED(shell->GetStyleSet(getter_AddRefs(set)))) { - if (nsnull != set) { + if (set) { set->RemoveDocStyleSheet(sheet); } } @@ -997,7 +997,7 @@ void nsDocument::AddStyleSheet(nsIStyleSheet* aSheet) nsIPresShell* shell = (nsIPresShell*)mPresShells.ElementAt(index); nsCOMPtr set; if (NS_SUCCEEDED(shell->GetStyleSet(getter_AddRefs(set)))) { - if (nsnull != set) { + if (set) { set->AddDocStyleSheet(aSheet, this); } } @@ -1025,7 +1025,7 @@ void nsDocument::SetStyleSheetDisabledState(nsIStyleSheet* aSheet, nsIPresShell* shell = (nsIPresShell*)mPresShells.ElementAt(index); nsCOMPtr set; if (NS_SUCCEEDED(shell->GetStyleSet(getter_AddRefs(set)))) { - if (nsnull != set) { + if (set) { if (aDisabled) { set->RemoveDocStyleSheet(aSheet); }