зеркало из https://github.com/mozilla/pjs.git
Trying to put CallQueryInterface back in. Lets see if Wensleydale likes it better with a .get().
This commit is contained in:
Родитель
b1b880d8cf
Коммит
a89e251b48
|
@ -4164,8 +4164,7 @@ NS_IMETHODIMP nsWebShell::GetDocument(nsIDOMDocument** aDocument)
|
||||||
NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER);
|
NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER);
|
||||||
|
|
||||||
// the result's addref comes from this QueryInterface call
|
// the result's addref comes from this QueryInterface call
|
||||||
NS_ENSURE_SUCCESS(doc->QueryInterface(NS_GET_IID(nsIDOMDocument),
|
NS_ENSURE_SUCCESS(CallQueryInterface(doc.get(), aDocument), NS_ERROR_FAILURE);
|
||||||
(void**)aDocument), NS_ERROR_FAILURE);
|
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4164,8 +4164,7 @@ NS_IMETHODIMP nsWebShell::GetDocument(nsIDOMDocument** aDocument)
|
||||||
NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER);
|
NS_ENSURE_TRUE(doc, NS_ERROR_NULL_POINTER);
|
||||||
|
|
||||||
// the result's addref comes from this QueryInterface call
|
// the result's addref comes from this QueryInterface call
|
||||||
NS_ENSURE_SUCCESS(doc->QueryInterface(NS_GET_IID(nsIDOMDocument),
|
NS_ENSURE_SUCCESS(CallQueryInterface(doc.get(), aDocument), NS_ERROR_FAILURE);
|
||||||
(void**)aDocument), NS_ERROR_FAILURE);
|
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче