Bug 741245 - Remove nsresult return value from nsXPConnect::GetSafeJSContext(); r=bholley
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user