зеркало из https://github.com/mozilla/pjs.git
Bah! No fancy C++ casts for you.
This commit is contained in:
Родитель
9d4d19b67c
Коммит
72b67a970e
|
@ -1824,8 +1824,8 @@ nsGenericElement::GetScriptObject(nsIScriptContext* aContext,
|
|||
// We must have re-entered; discard the newly created
|
||||
// script object and use the one created during the
|
||||
// nesting instead.
|
||||
JSContext* cx = NS_STATIC_CAST(JSContext*, aContext->GetNativeContext());
|
||||
::JS_SetPrivate(cx, NS_STATIC_CAST(JSObject*, scriptObject), nsnull);
|
||||
JSContext* cx = (JSContext*) aContext->GetNativeContext();
|
||||
::JS_SetPrivate(cx, (JSObject*) scriptObject, nsnull);
|
||||
|
||||
// Since we've eagerly cleared the transient script
|
||||
// object's native pointer, we now need to ``manually''
|
||||
|
|
|
@ -2073,8 +2073,8 @@ nsXULElement::GetScriptObject(nsIScriptContext* aContext, void** aScriptObject)
|
|||
// We must have re-entered; discard the newly created
|
||||
// script object and use the one created during the
|
||||
// nesting instead.
|
||||
JSContext* cx = NS_STATIC_CAST(JSContext*, aContext->GetNativeContext());
|
||||
::JS_SetPrivate(cx, NS_STATIC_CAST(JSObject*, scriptObject), nsnull);
|
||||
JSContext* cx = (JSContext*) aContext->GetNativeContext();
|
||||
::JS_SetPrivate(cx, (JSObject*) scriptObject, nsnull);
|
||||
|
||||
// Since we've eagerly cleared the transient script
|
||||
// object's native pointer, we now need to ``manually''
|
||||
|
|
Загрузка…
Ссылка в новой задаче