PR_FALSE is not nsnull!

This commit is contained in:
warren%netscape.com 1999-03-27 02:56:52 +00:00
parent 077db86ded
commit fb91ab1cfe
6 changed files with 12 additions and 12 deletions

View File

@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
NS_RELEASE(content);
if (NS_FAILED(rv) || (nsnull == tc)) {
return PR_FALSE;
return nsnull;
}
PRBool isws = PR_FALSE;
tc->IsOnlyWhitespace(&isws);
NS_RELEASE(tc);
if (!isws) {
return PR_FALSE;
return nsnull;
}
firstChild->GetNextSibling(&firstChild);
}

View File

@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
NS_RELEASE(content);
if (NS_FAILED(rv) || (nsnull == tc)) {
return PR_FALSE;
return nsnull;
}
PRBool isws = PR_FALSE;
tc->IsOnlyWhitespace(&isws);
NS_RELEASE(tc);
if (!isws) {
return PR_FALSE;
return nsnull;
}
firstChild->GetNextSibling(&firstChild);
}

View File

@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
NS_RELEASE(content);
if (NS_FAILED(rv) || (nsnull == tc)) {
return PR_FALSE;
return nsnull;
}
PRBool isws = PR_FALSE;
tc->IsOnlyWhitespace(&isws);
NS_RELEASE(tc);
if (!isws) {
return PR_FALSE;
return nsnull;
}
firstChild->GetNextSibling(&firstChild);
}

View File

@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
NS_RELEASE(content);
if (NS_FAILED(rv) || (nsnull == tc)) {
return PR_FALSE;
return nsnull;
}
PRBool isws = PR_FALSE;
tc->IsOnlyWhitespace(&isws);
NS_RELEASE(tc);
if (!isws) {
return PR_FALSE;
return nsnull;
}
firstChild->GetNextSibling(&firstChild);
}

View File

@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
NS_RELEASE(content);
if (NS_FAILED(rv) || (nsnull == tc)) {
return PR_FALSE;
return nsnull;
}
PRBool isws = PR_FALSE;
tc->IsOnlyWhitespace(&isws);
NS_RELEASE(tc);
if (!isws) {
return PR_FALSE;
return nsnull;
}
firstChild->GetNextSibling(&firstChild);
}

View File

@ -2207,13 +2207,13 @@ nsBlockFrame::GetTopBlockChild()
rv = content->QueryInterface(kITextContentIID, (void**) &tc);
NS_RELEASE(content);
if (NS_FAILED(rv) || (nsnull == tc)) {
return PR_FALSE;
return nsnull;
}
PRBool isws = PR_FALSE;
tc->IsOnlyWhitespace(&isws);
NS_RELEASE(tc);
if (!isws) {
return PR_FALSE;
return nsnull;
}
firstChild->GetNextSibling(&firstChild);
}