From cf24576e46a5b10045b6f9f7c67aef56640c37fb Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Mon, 15 Nov 1999 23:26:50 +0000 Subject: [PATCH] Fixed ambigous cast. git-svn-id: svn://10.0.0.236/trunk@53566 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/docshell/base/nsWebShell.cpp | 3 ++- mozilla/webshell/src/nsWebShell.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/docshell/base/nsWebShell.cpp b/mozilla/docshell/base/nsWebShell.cpp index f8353db3d01..d12d80c53ba 100644 --- a/mozilla/docshell/base/nsWebShell.cpp +++ b/mozilla/docshell/base/nsWebShell.cpp @@ -1882,7 +1882,8 @@ nsWebShell::SetDocument(nsIDOMDocument *aDOMDoc, nsIDOMElement *aRootNode) // (4) fire start document load notification nsIStreamListener* outStreamListener=nsnull; // a valid pointer is required for the returned stream listener - NS_ENSURE_SUCCESS(doc->StartDocumentLoad("view", dummyChannel, nsnull, this, &outStreamListener), + NS_ENSURE_SUCCESS(doc->StartDocumentLoad("view", dummyChannel, nsnull, NS_STATIC_CAST(nsIContentViewerContainer*, this), + &outStreamListener), NS_ERROR_FAILURE); NS_IF_RELEASE(outStreamListener); NS_ENSURE_SUCCESS(OnStartDocumentLoad(mDocLoader, uri, "load"), NS_ERROR_FAILURE); diff --git a/mozilla/webshell/src/nsWebShell.cpp b/mozilla/webshell/src/nsWebShell.cpp index f8353db3d01..d12d80c53ba 100644 --- a/mozilla/webshell/src/nsWebShell.cpp +++ b/mozilla/webshell/src/nsWebShell.cpp @@ -1882,7 +1882,8 @@ nsWebShell::SetDocument(nsIDOMDocument *aDOMDoc, nsIDOMElement *aRootNode) // (4) fire start document load notification nsIStreamListener* outStreamListener=nsnull; // a valid pointer is required for the returned stream listener - NS_ENSURE_SUCCESS(doc->StartDocumentLoad("view", dummyChannel, nsnull, this, &outStreamListener), + NS_ENSURE_SUCCESS(doc->StartDocumentLoad("view", dummyChannel, nsnull, NS_STATIC_CAST(nsIContentViewerContainer*, this), + &outStreamListener), NS_ERROR_FAILURE); NS_IF_RELEASE(outStreamListener); NS_ENSURE_SUCCESS(OnStartDocumentLoad(mDocLoader, uri, "load"), NS_ERROR_FAILURE);