Bug 196340 Change NS_REINTERPRET_CAST(nsIScriptContext*, JS_GetContextPrivate(cx)) to use Static Cast

r=mstoltz sr=heikki
This commit is contained in:
timeless%mozdev.org 2003-03-07 21:54:28 +00:00
Родитель 777a85bb82
Коммит 39e4fcf204
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -1763,7 +1763,7 @@ nsScriptSecurityManager::GetPrincipalFromContext(JSContext *cx,
NS_ENSURE_TRUE(::JS_GetOptions(cx) & JSOPTION_PRIVATE_IS_NSISUPPORTS,
NS_ERROR_FAILURE);
nsISupports* scriptContextSupports =
NS_REINTERPRET_CAST(nsISupports*, JS_GetContextPrivate(cx));
NS_STATIC_CAST(nsISupports*, JS_GetContextPrivate(cx));
nsCOMPtr<nsIScriptContext> scriptContext(do_QueryInterface(scriptContextSupports));
if (scriptContext)