mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
bug 398587: Correct prbool misuse in dom/ r=Olli.Petay a=release drivers
This commit is contained in:
parent
1b492fa1a8
commit
1cbd4d065b
@ -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,
|
||||
|
@ -253,7 +253,7 @@ nsDOMStorageDB::GetKeyValue(const nsAString& aDomain,
|
||||
rv = NS_ERROR_DOM_NOT_FOUND_ERR;
|
||||
}
|
||||
|
||||
*aSecure = (PRBool)secureInt;
|
||||
*aSecure = !!secureInt;
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user