row->ChildAt(i, *getter_AddRefs(child));
row->ChildAt(i, getter_AddRefs(child));
nsXULTreeBuilder::GetTemplateActionCellFor(PRInt32 aRow,                                               const PRUnichar* aColID,                                               nsIContent** aResult){    *aResult = nsnull;    nsCOMPtr<nsIContent> row;    GetTemplateActionRowFor(aRow, getter_AddRefs(row));    if (row) {        PRInt32 colIndex = -1;        if (mBoxObject)            mBoxObject->GetColumnIndex(aColID, &colIndex);        PRInt32 count;        row->ChildCount(count);        PRInt32 j = 0;        for (PRInt32 i = 0; i < count; ++i) {            nsCOMPtr<nsIContent> child;            row->ChildAt(i, *getter_AddRefs(child));            nsCOMPtr<nsIAtom> tag;            child->GetTag(*getter_AddRefs(tag));            if (tag == nsXULAtoms::treecell) {                nsAutoString ref;                child->GetAttr(kNameSpaceID_None, nsXULAtoms::ref, ref);                if (!ref.IsEmpty() && ref.Equals(aColID)) {                    *aResult = child;                    break;                }                else if (j == colIndex)                    *aResult = child;                j++;            }        }    }    NS_IF_ADDREF(*aResult);    return NS_OK;}