nsCOMPtr<nsIRDFNode>	typeNode; if ((aSource == kNC_RelatedLinksRoot) || (NS_SUCCEEDED(rv = GetTarget(aSource, kRDF_type, PR_TRUE, getter_AddRefs(typeNode))) && (rv != NS_RDF_NO_VALUE)))
PRBool	hasValueFlag = PR_FALSE; if ((aSource == kNC_RelatedLinksRoot) || (NS_SUCCEEDED(rv = mInner->HasAssertion(aSource, kRDF_type, kNC_RelatedLinksTopic, PR_TRUE, &hasValueFlag))) && (hasValueFlag == PR_TRUE))
RelatedLinksHandlerImpl::ArcLabelsOut(nsIRDFResource *aSource,				      nsISimpleEnumerator **aLabels){	nsresult	rv;	nsCOMPtr<nsISupportsArray> array;	rv = NS_NewISupportsArray(getter_AddRefs(array));	if (NS_FAILED(rv)) return rv;	nsISimpleEnumerator* result = new nsArrayEnumerator(array);	if (! result)	return(NS_ERROR_OUT_OF_MEMORY);	nsCOMPtr<nsIRDFNode>	typeNode;	if ((aSource == kNC_RelatedLinksRoot) || (NS_SUCCEEDED(rv = GetTarget(aSource,		kRDF_type, PR_TRUE, getter_AddRefs(typeNode))) && (rv != NS_RDF_NO_VALUE)))	{		array->AppendElement(kNC_Child);	}	NS_ADDREF(result);	*aLabels = result;	return(NS_OK);}