PRUnichar *childName;
const PRUnichar *childName;
nsWebShell::FindChildWithName(const PRUnichar* aName1,                              nsIWebShell*& aResult){  aResult = nsnull;  nsString aName(aName1);  PRUnichar *childName;  PRInt32 i, n = mChildren.Count();  for (i = 0; i < n; i++) {    nsIWebShell* child = (nsIWebShell*) mChildren.ElementAt(i);    if (nsnull != child) {      child->GetName(&childName);      if (aName.Equals(childName)) {        aResult = child;        NS_ADDREF(child);        break;      }      // See if child contains the shell with the given name      nsresult rv = child->FindChildWithName(aName, aResult);      if (NS_FAILED(rv)) {        return rv;      }      if (nsnull != aResult) {        break;      }    }  }  return NS_OK;}