if (mName) { CopyASCIItoUCS2(nsDependentCString(mName), aName);
NS_ENSURE_ARG_POINTER(aName);  const ResultStruct *rs = NSResultToResultStruct(mResult);  if (rs) { *aName = nsCRT::strdup(rs->mName); } else { *aName = nsnull;
nsDOMException::GetName(nsAWritableString& aName){  if (mName) {    CopyASCIItoUCS2(nsDependentCString(mName), aName);  }  else {    aName.Truncate();  }    return NS_OK;}