Bah! No fancy C++ casts for you.

This commit is contained in:
waterson%netscape.com 2001-03-10 02:06:59 +00:00
Родитель 9d4d19b67c
Коммит 72b67a970e
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -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''