nsISupportsArray::RemoveElement() returns an nsresult, not a PRBool.

This commit is contained in:
waterson%netscape.com 1999-04-14 20:42:48 +00:00
parent e41f55046f
commit 0a0b15da60
2 changed files with 8 additions and 6 deletions

View File

@ -1392,8 +1392,9 @@ void nsDocLoaderImpl::LoadURLComplete(nsIURL* aURL, nsISupports* aBindInfo, PRIn
* If the entry is not found in the list, then it must have been cancelled
* via Stop(...). So ignore just it...
*/
rv = m_LoadingDocsList->RemoveElement(aBindInfo);
if (PR_FALSE != rv) {
nsresult res;
res = m_LoadingDocsList->RemoveElement(aBindInfo);
if (NS_SUCCEEDED(res)) {
nsILoadAttribs* loadAttributes;
nsURLLoadType loadType = nsURLLoadNormal;
@ -1432,7 +1433,7 @@ void nsDocLoaderImpl::LoadURLComplete(nsIURL* aURL, nsISupports* aBindInfo, PRIn
*/
IsBusy(bIsBusy);
if ((PR_FALSE != bIsForegroundURL) && (!bIsBusy)) {
if (bIsForegroundURL && !bIsBusy) {
#if defined(DEBUG)
const char* buffer;

View File

@ -1392,8 +1392,9 @@ void nsDocLoaderImpl::LoadURLComplete(nsIURL* aURL, nsISupports* aBindInfo, PRIn
* If the entry is not found in the list, then it must have been cancelled
* via Stop(...). So ignore just it...
*/
rv = m_LoadingDocsList->RemoveElement(aBindInfo);
if (PR_FALSE != rv) {
nsresult res;
res = m_LoadingDocsList->RemoveElement(aBindInfo);
if (NS_SUCCEEDED(res)) {
nsILoadAttribs* loadAttributes;
nsURLLoadType loadType = nsURLLoadNormal;
@ -1432,7 +1433,7 @@ void nsDocLoaderImpl::LoadURLComplete(nsIURL* aURL, nsISupports* aBindInfo, PRIn
*/
IsBusy(bIsBusy);
if ((PR_FALSE != bIsForegroundURL) && (!bIsBusy)) {
if (bIsForegroundURL && !bIsBusy) {
#if defined(DEBUG)
const char* buffer;