Changed a temp XPCOM manual ref pointer to an nsCOMPtr.

This commit is contained in:
tbogard%aol.net 1999-11-12 09:13:52 +00:00
Родитель 9669aaed56
Коммит 8b913365e8
1 изменённых файлов: 51 добавлений и 52 удалений

Просмотреть файл

@ -203,10 +203,9 @@ nsDocShell::SetDocument(nsIDOMDocument *aDOMDoc, nsIDOMElement *aRootNode)
NS_ENSURE_SUCCESS(NS_OpenURI(getter_AddRefs(dummyChannel), uri, nsnull), NS_ERROR_FAILURE);
// (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_ERROR_FAILURE);
NS_IF_RELEASE(outStreamListener);
nsCOMPtr<nsIStreamListener> outStreamListener;
NS_ENSURE_SUCCESS(doc->StartDocumentLoad("view", dummyChannel, nsnull, this,
getter_AddRefs(outStreamListener)), NS_ERROR_FAILURE);
NS_ENSURE_SUCCESS(FireStartDocumentLoad(mDocLoader, uri, "load"), NS_ERROR_FAILURE);
// (5) hook up the document and its content
@ -577,7 +576,7 @@ NS_IMETHODIMP nsDocShell::CutSelection()
//XXX Implement
//XXXIMPL
//Should check to find the current focused object. Then cut the contents.
return NS_ERROR_FAILURE;
}