Eliminating the last traces of NS_COMFALSE from the DOM code, fixes M15 bug #11594.

This commit is contained in:
jst%netscape.com 2000-04-05 02:40:08 +00:00
parent 82e37e23f7
commit 059979d5e5
5 changed files with 10 additions and 5 deletions

View File

@ -246,7 +246,7 @@ public:
* Check to see if context is as yet intialized. Used to prevent
* reentrancy issues during the initialization process.
*
* @return NS_OK if initialized, NS_COMFALSE if not
* @return NS_OK if initialized, NS_ERROR_NOT_INITIALIZED if not
*
*/
NS_IMETHOD IsContextInitialized() = 0;

View File

@ -76,7 +76,7 @@ public:
* a global symbol.
* @param aCID out parameter that returns the class ID
* that corresponds to the name
* @result NS_OK if the lookup succeeded. NS_COMFALSE
* @result NS_OK if the lookup succeeded. NS_ERROR_INVALID_ARG
* if the lookup failed.
*/
NS_IMETHOD LookupName(const nsString& aName,

View File

@ -892,7 +892,7 @@ nsJSContext::InitClasses()
NS_IMETHODIMP
nsJSContext::IsContextInitialized()
{
return (mIsInitialized) ? NS_OK : NS_COMFALSE;
return (mIsInitialized) ? NS_OK : NS_ERROR_NOT_INITIALIZED;
}
NS_IMETHODIMP

View File

@ -503,7 +503,8 @@ nsJSUtils::nsGlobalResolve(JSContext* aContext,
return JS_TRUE;
}
if (NS_COMFALSE == scriptContext->IsContextInitialized()) {
result = scriptContext->IsContextInitialized();
if (NS_FAILED(result)) {
return JS_TRUE;
}

View File

@ -99,7 +99,11 @@ nsresult nsJSDOMEventListener::HandleEvent(nsIDOMEvent* aEvent)
nsresult nsJSDOMEventListener::CheckIfEqual(nsIScriptEventListener *aListener)
{
return NS_COMFALSE;
/*
* This should be rewritten to use a PRBool out parameter in stead of
* using the return value to show if this equals aListener...
*/
return NS_ERROR_FAILURE;
}
/*