зеркало из https://github.com/mozilla/pjs.git
Bug 196340 Change NS_REINTERPRET_CAST(nsIScriptContext*, JS_GetContextPrivate(cx)) to use Static Cast
r=mstoltz sr=heikki
This commit is contained in:
Родитель
777a85bb82
Коммит
39e4fcf204
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче