Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley

This commit is contained in:
Ms2ger
2012-05-05 11:00:05 +02:00
parent 060d3b913f
commit b8c940e642
19 changed files with 50 additions and 70 deletions

View File

@@ -1349,10 +1349,10 @@ _getstringidentifier(const NPUTF8* name)
if (!stack)
return NULL;
JSContext *cx = nsnull;
stack->GetSafeJSContext(&cx);
if (!cx)
JSContext* cx = stack->GetSafeJSContext();
if (!cx) {
return NULL;
}
JSAutoRequest ar(cx);
return doGetIdentifier(cx, name);
@@ -1370,10 +1370,10 @@ _getstringidentifiers(const NPUTF8** names, int32_t nameCount,
if (!stack)
return;
JSContext *cx = nsnull;
stack->GetSafeJSContext(&cx);
if (!cx)
JSContext* cx = stack->GetSafeJSContext();
if (!cx) {
return;
}
JSAutoRequest ar(cx);