Fix up three uses of NS_STATIC_CAST which can't be automatically converted to static_cast<> due to a deficiency in the fixup script.

git-svn-id: svn://10.0.0.236/trunk@229203 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
jwalden%mit.edu
2007-07-02 23:46:19 +00:00
parent f1eeedbdad
commit 031199ebd3
2 changed files with 5 additions and 7 deletions

View File

@@ -5874,9 +5874,8 @@ nsDocShell::NewContentViewerObj(const char *aContentType,
NS_ENSURE_SUCCESS(docLoaderFactory->CreateInstance("view",
aOpenedChannel,
aLoadGroup, aContentType,
NS_STATIC_CAST
(nsIContentViewerContainer
*, this), nsnull,
static_cast<nsIContentViewerContainer*>(this),
nsnull,
aContentHandler,
aViewer),
NS_ERROR_FAILURE);
@@ -8479,8 +8478,7 @@ nsDocShell::EnsureScriptEnvironment()
nsCOMPtr<nsPIDOMWindow> win(do_QueryInterface(mScriptGlobal));
win->SetDocShell(NS_STATIC_CAST(nsIDocShell *, this));
mScriptGlobal->
SetGlobalObjectOwner(NS_STATIC_CAST
(nsIScriptGlobalObjectOwner *, this));
SetGlobalObjectOwner(static_cast<nsIScriptGlobalObjectOwner *>(this));
// Ensure the script object is set to run javascript - other languages
// setup on demand.