Bug 859817 - Introduce already_AddRefed.downcast(); r=ehsan

This commit is contained in:
Aryeh Gregor
2013-04-21 14:56:06 +03:00
parent 613439817d
commit 563acc033a
7 changed files with 34 additions and 9 deletions

View File

@@ -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