Bug 956455, part 3 - Remove the holder argument to nsXPConnect::WrapNativeToJSVal. r=gabor

This commit is contained in:
Andrew McCreight
2014-01-06 11:54:43 -08:00
parent 91c930f3fa
commit 57a0a9e360
8 changed files with 13 additions and 24 deletions

View File

@@ -177,7 +177,7 @@ File(JSContext *cx, unsigned argc, Value *vp)
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
rv = xpc->WrapNativeToJSVal(cx, glob, native, nullptr,
&NS_GET_IID(nsISupports),
true, args.rval().address(), nullptr);
true, args.rval().address());
if (NS_FAILED(rv)) {
XPCThrower::Throw(rv, cx);
return false;
@@ -212,7 +212,7 @@ Blob(JSContext *cx, unsigned argc, Value *vp)
nsCOMPtr<nsIXPConnectJSObjectHolder> holder;
rv = xpc->WrapNativeToJSVal(cx, glob, native, nullptr,
&NS_GET_IID(nsISupports),
true, args.rval().address(), nullptr);
true, args.rval().address());
if (NS_FAILED(rv)) {
XPCThrower::Throw(rv, cx);
return false;