mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
nsISupportsArray::RemoveElement() returns an nsresult, not a PRBool.
This commit is contained in:
parent
e41f55046f
commit
0a0b15da60
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user