nsIDOMNode *sectionNode = nsnull; nsresult result = GetParentNode(&sectionNode); if (NS_SUCCEEDED(result) && (nsnull != sectionNode)) { result = sectionNode->QueryInterface(NS_GET_IID(nsIDOMHTMLTableSectionElement), (void**)aSection); NS_RELEASE(sectionNode); } return result;
return rv;
nsHTMLTableRowElement::GetSection(nsIDOMHTMLTableSectionElement** aSection){  *aSection = nsnull;  if (nsnull == aSection) {    return NS_ERROR_OUT_OF_MEMORY;  }  nsIDOMNode *sectionNode = nsnull;  nsresult result = GetParentNode(&sectionNode);  if (NS_SUCCEEDED(result) && (nsnull != sectionNode)) {    result = sectionNode->QueryInterface(NS_GET_IID(nsIDOMHTMLTableSectionElement), (void**)aSection);    NS_RELEASE(sectionNode);  }  return result;}