Backed out change to nsISupportsArray::AppendElement() and RemoveElement(); they now return PRBool's like they used to.

git-svn-id: svn://10.0.0.236/trunk@27474 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
waterson%netscape.com
1999-04-14 23:06:22 +00:00
parent a6ef6e380e
commit 78230e652c
8 changed files with 20 additions and 16 deletions

View File

@@ -280,7 +280,7 @@ nsThreadPool::Init(PRUint32 stackSize,
NS_RELEASE(runnable);
if (NS_FAILED(rv)) goto exit;
rv = mThreads->AppendElement(thread);
rv = mThreads->AppendElement(thread) ? NS_OK : NS_ERROR_FAILURE;
NS_RELEASE(thread);
if (NS_FAILED(rv)) goto exit;
}
@@ -318,7 +318,8 @@ nsThreadPool::DispatchRequest(nsIRunnable* runnable)
rv = NS_ERROR_FAILURE;
}
else {
rv = mRequests->AppendElement(runnable);
// XXX for now AppendElement returns a PRBool
rv = ((PRBool) mRequests->AppendElement(runnable)) ? NS_OK : NS_ERROR_FAILURE;
if (NS_SUCCEEDED(rv))
PR_Notify(mRequestMonitor);
}