bug 398587: Correct prbool misuse in dom/ r=Olli.Petay a=release drivers

This commit is contained in:
tglek@mozilla.com 2007-11-12 13:57:48 -08:00
parent 1b492fa1a8
commit 1cbd4d065b
2 changed files with 2 additions and 2 deletions

View File

@ -4259,7 +4259,7 @@ nsWindowSH::GlobalScopePolluterNewResolve(JSContext *cx, JSObject *obj,
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
nsresult rv = WrapNative(cx, obj, result, NS_GET_IID(nsISupports), &v,
getter_AddRefs(holder));
NS_ENSURE_SUCCESS(rv, rv);
NS_ENSURE_SUCCESS(rv, JS_FALSE);
if (!::JS_DefineUCProperty(cx, obj, ::JS_GetStringChars(jsstr),
::JS_GetStringLength(jsstr), v, nsnull, nsnull,

View File

@ -253,7 +253,7 @@ nsDOMStorageDB::GetKeyValue(const nsAString& aDomain,
rv = NS_ERROR_DOM_NOT_FOUND_ERR;
}
*aSecure = (PRBool)secureInt;
*aSecure = !!secureInt;
return rv;
}