Bug 958643, part 2 - Remove always-null last argument to NativeInterface2JSObject. r=krizsa

MozReview-Commit-ID: G9F6wlMWCl9

--HG--
extra : rebase_source : 313a40850965fc1a2488ef60deaf9d1cb2705806
This commit is contained in:
Andrew McCreight 2017-09-20 10:15:06 -07:00
Родитель 78601602bf
Коммит 8ee8721f0d
1 изменённых файлов: 4 добавлений и 5 удалений

Просмотреть файл

@ -607,15 +607,14 @@ NativeInterface2JSObject(HandleObject aScope,
nsWrapperCache* aCache,
const nsIID * aIID,
bool aAllowWrapping,
MutableHandleValue aVal,
nsIXPConnectJSObjectHolder** aHolder)
MutableHandleValue aVal)
{
AutoJSContext cx;
JSAutoCompartment ac(cx, aScope);
nsresult rv;
xpcObjectHelper helper(aCOMObj, aCache);
if (!XPCConvert::NativeInterface2JSObject(aVal, aHolder, helper, aIID,
if (!XPCConvert::NativeInterface2JSObject(aVal, nullptr, helper, aIID,
aAllowWrapping, &rv))
return rv;
@ -639,7 +638,7 @@ nsXPConnect::WrapNative(JSContext * aJSContext,
RootedObject aScope(aJSContext, aScopeArg);
RootedValue v(aJSContext);
nsresult rv = NativeInterface2JSObject(aScope, aCOMObj, nullptr, &aIID,
true, &v, nullptr);
true, &v);
if (NS_FAILED(rv))
return rv;
@ -665,7 +664,7 @@ nsXPConnect::WrapNativeToJSVal(JSContext* aJSContext,
RootedObject aScope(aJSContext, aScopeArg);
return NativeInterface2JSObject(aScope, aCOMObj, aCache, aIID,
aAllowWrapping, aVal, nullptr);
aAllowWrapping, aVal);
}
NS_IMETHODIMP