Bug 859817 - Introduce already_AddRefed.downcast(); r=ehsan
This commit is contained in:
@@ -2760,7 +2760,7 @@ already_AddRefed<nsDocShell>
|
||||
nsDocShell::GetParentDocshell()
|
||||
{
|
||||
nsCOMPtr<nsIDocShell> docshell = do_QueryInterface(GetAsSupports(mParent));
|
||||
return static_cast<nsDocShell*>(docshell.forget().get());
|
||||
return docshell.forget().downcast<nsDocShell>();
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
||||
Reference in New Issue
Block a user