const PRUnichar *buffer; medium->GetUnicode(&buffer); aReturn.Assign(buffer); } else { aReturn.Truncate();
result = mStyleSheet->GetStyleSheetAt(aIndex, sheet); if (NS_OK == result) { result = sheet->QueryInterface(kIDOMStyleSheetIID, (void **)aReturn); } NS_RELEASE(sheet);
DOMMediaListImpl::Item(PRUint32 aIndex, nsString& aReturn){  nsCOMPtr<nsISupports> tmp(dont_AddRef(ElementAt(aIndex)));  if (tmp) {    nsCOMPtr<nsIAtom> medium(do_QueryInterface(tmp));    NS_ENSURE_TRUE(medium, NS_ERROR_FAILURE);    const PRUnichar *buffer;    medium->GetUnicode(&buffer);    aReturn.Assign(buffer);  } else {    aReturn.Truncate();  }  return NS_OK;}