if (aCharset == NULL) return NS_ERROR_NULL_POINTER; if (aResult == NULL) return NS_ERROR_NULL_POINTER; *aResult = NULL;
*aResult= nsnull; nsresult res = NS_OK;
NS_IMETHODIMP nsCharsetConverterManager::GetUnicodeEncoder(                                         const nsIAtom * aCharset,                                          nsIUnicodeEncoder ** aResult){  if (aCharset == NULL) return NS_ERROR_NULL_POINTER;  if (aResult == NULL) return NS_ERROR_NULL_POINTER;  *aResult = NULL;  // XXX use nsImmutableString  nsAutoString name;  NS_CONST_CAST(nsIAtom*, aCharset)->ToString(name);  return GetUnicodeEncoder(&name, aResult);}