From a89e251b4867c37fb4b6be3b5435456d2a7edee6 Mon Sep 17 00:00:00 2001 From: "tbogard%aol.net" Date: Tue, 30 Nov 1999 23:50:01 +0000 Subject: [PATCH] Trying to put CallQueryInterface back in. Lets see if Wensleydale likes it better with a .get(). --- docshell/base/nsWebShell.cpp | 3 +-- webshell/src/nsWebShell.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/docshell/base/nsWebShell.cpp b/docshell/base/nsWebShell.cpp index 8a2e750519e..9c12f9cce70 100644 --- a/docshell/base/nsWebShell.cpp +++ b/docshell/base/nsWebShell.cpp @@ -4164,8 +4164,7 @@ NS_IMETHODIMP nsWebShell::GetDocument(nsIDOMDocument** aDocument) NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER); // the result's addref comes from this QueryInterface call - NS_ENSURE_SUCCESS(doc->QueryInterface(NS_GET_IID(nsIDOMDocument), - (void**)aDocument), NS_ERROR_FAILURE); + NS_ENSURE_SUCCESS(CallQueryInterface(doc.get(), aDocument), NS_ERROR_FAILURE); return NS_OK; } diff --git a/webshell/src/nsWebShell.cpp b/webshell/src/nsWebShell.cpp index 8a2e750519e..9c12f9cce70 100644 --- a/webshell/src/nsWebShell.cpp +++ b/webshell/src/nsWebShell.cpp @@ -4164,8 +4164,7 @@ NS_IMETHODIMP nsWebShell::GetDocument(nsIDOMDocument** aDocument) NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER); // the result's addref comes from this QueryInterface call - NS_ENSURE_SUCCESS(doc->QueryInterface(NS_GET_IID(nsIDOMDocument), - (void**)aDocument), NS_ERROR_FAILURE); + NS_ENSURE_SUCCESS(CallQueryInterface(doc.get(), aDocument), NS_ERROR_FAILURE); return NS_OK; }