return it->QueryInterface(kIUnicharInputStreamIID,
return it->QueryInterface(NS_GET_IID(nsIUnicharInputStream),
NS_NewConverterStream(nsIUnicharInputStream** aInstancePtrResult,                      nsISupports* aOuter,                      nsIInputStream* aStreamToWrap,                      PRInt32 aBufferSize,                      nsString* aCharSet){  if (nsnull != aOuter) {    return NS_ERROR_NO_AGGREGATION;  }  // Create converter  nsIUnicodeDecoder* converter;  nsresult rv = NS_NewB2UConverter(&converter, nsnull, aCharSet);  if (NS_OK != rv) {    return rv;  }  // Create converter input stream  ConverterInputStream* it =    new ConverterInputStream(aStreamToWrap, converter, aBufferSize);  NS_RELEASE(converter);  if (nsnull == it) {    return NS_ERROR_OUT_OF_MEMORY;  }  return it->QueryInterface(kIUnicharInputStreamIID,                             (void **) aInstancePtrResult);}