if (iter) return iter->QueryInterface(NS_GET_IID(nsIContentIterator), (void**) aInstancePtrResult); return NS_ERROR_OUT_OF_MEMORY;
if (!iter) { return NS_ERROR_OUT_OF_MEMORY; }  return CallQueryInterface(iter, aInstancePtrResult);
nsresult NS_NewGenRegularIterator(nsIContentIterator ** aInstancePtrResult){  nsGeneratedContentIterator * iter = new nsGeneratedContentIterator();  if (iter)    return iter->QueryInterface(NS_GET_IID(nsIContentIterator), (void**) aInstancePtrResult);  return NS_ERROR_OUT_OF_MEMORY;}