mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1064439, part 12 - Use nullptr in nsWebBrowser. r=jst
This commit is contained in:
parent
edf00d8802
commit
796da5cb52
@ -1696,7 +1696,7 @@ bool nsWebBrowser::PaintWindow(nsIWidget* aWidget, nsIntRegion aRegion)
|
||||
|
||||
NS_IMETHODIMP nsWebBrowser::GetPrimaryContentWindow(nsIDOMWindow** aDOMWindow)
|
||||
{
|
||||
*aDOMWindow = 0;
|
||||
*aDOMWindow = nullptr;
|
||||
|
||||
nsCOMPtr<nsIDocShellTreeItem> item;
|
||||
NS_ENSURE_TRUE(mDocShellTreeOwner, NS_ERROR_FAILURE);
|
||||
@ -1834,8 +1834,8 @@ NS_IMETHODIMP nsWebBrowser::CloseStream()
|
||||
rv = mStream->CloseStream();
|
||||
|
||||
// release
|
||||
mStream = 0;
|
||||
mStreamGuard = 0;
|
||||
mStream = nullptr;
|
||||
mStreamGuard = nullptr;
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user