fixes bug 328925 "Replace NS_WARN_IF_FALSE with NS_ASSERTION (where appropriate)" r=dbaron
git-svn-id: svn://10.0.0.236/trunk@193272 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -163,14 +163,14 @@ nsExceptionService::nsExceptionService()
|
||||
if (tlsIndex == BAD_TLS_INDEX) {
|
||||
PRStatus status;
|
||||
status = PR_NewThreadPrivateIndex( &tlsIndex, ThreadDestruct );
|
||||
NS_WARN_IF_FALSE(status==0, "ScriptErrorService could not allocate TLS storage.");
|
||||
NS_ASSERTION(status==0, "ScriptErrorService could not allocate TLS storage.");
|
||||
}
|
||||
lock = PR_NewLock();
|
||||
NS_WARN_IF_FALSE(lock, "Error allocating ExceptionService lock");
|
||||
NS_ASSERTION(lock, "Error allocating ExceptionService lock");
|
||||
|
||||
// observe XPCOM shutdown.
|
||||
nsCOMPtr<nsIObserverService> observerService = do_GetService("@mozilla.org/observer-service;1");
|
||||
NS_WARN_IF_FALSE(observerService, "Could not get observer service!");
|
||||
NS_ASSERTION(observerService, "Could not get observer service!");
|
||||
if (observerService)
|
||||
observerService->AddObserver(this, NS_XPCOM_SHUTDOWN_OBSERVER_ID, PR_FALSE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user