зеркало из https://github.com/mozilla/pjs.git
Changed a temp XPCOM manual ref pointer to an nsCOMPtr.
This commit is contained in:
Родитель
98a1f3c523
Коммит
478cebc8b7
|
@ -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;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче