fix warning.

This commit is contained in:
sspitzer%netscape.com 2000-01-12 08:57:41 +00:00
parent 5eb41ebeaf
commit 1c84b93a3a
3 changed files with 3 additions and 3 deletions

View File

@ -300,8 +300,8 @@ nsXULElement::nsXULElement()
mParent(nsnull),
mChildren(nsnull),
mScriptObject(nsnull),
mIsAnonymous(PR_FALSE),
mLazyState(0),
mIsAnonymous(PR_FALSE),
mSlots(nsnull)
{
NS_INIT_REFCNT();

View File

@ -75,7 +75,7 @@ PRBool nsMimeHtmlDisplayEmitter::BroadCastHeadersAndAttachments()
// try to get a header sink if there is one....
nsCOMPtr<nsIMsgHeaderSink> headerSink;
nsresult rv = GetHeaderSink(getter_AddRefs(headerSink));
if (headerSink && mDocHeader)
if (NS_SUCCEEDED(rv) && headerSink && mDocHeader)
return PR_TRUE;
else
return PR_FALSE;

View File

@ -300,8 +300,8 @@ nsXULElement::nsXULElement()
mParent(nsnull),
mChildren(nsnull),
mScriptObject(nsnull),
mIsAnonymous(PR_FALSE),
mLazyState(0),
mIsAnonymous(PR_FALSE),
mSlots(nsnull)
{
NS_INIT_REFCNT();