Bug 317937 Get rid of some unnecessary CIDs and change some possibly unsafe nsCOMPtr usage into the equivalently unsafe static casts r=darin sr=jst

This commit is contained in:
neil@parkwaycc.co.uk
2005-12-02 12:02:44 +00:00
parent 3ae59dc883
commit b7851999ff
11 changed files with 24 additions and 56 deletions

View File

@@ -397,7 +397,8 @@ NS_IMETHODIMP nsComboboxControlFrame::GetAccessible(nsIAccessible** aAccessible)
if (accService) {
nsCOMPtr<nsIDOMNode> node = do_QueryInterface(mContent);
return accService->CreateHTMLComboboxAccessible(node, GetPresContext()->PresShell(), aAccessible);
nsCOMPtr<nsIWeakReference> weakShell(do_GetWeakReference(GetPresContext()->PresShell()));
return accService->CreateHTMLComboboxAccessible(node, weakShell, aAccessible);
}
return NS_ERROR_FAILURE;