nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv); if (NS_SUCCEEDED(rv)) { nsCOMPtr<nsIPrefLocalizedString> theString; rv = prefBranch->GetComplexValue(pref, NS_GET_IID(nsIPrefLocalizedString), getter_AddRefs(theString)); if (NS_SUCCEEDED(rv)) { rv = theString->GetData(_retval); } } return rv;
return GetDefaultLocalizedUnicharPref(pref, return_buf);
NS_IMETHODIMP nsPref::GetLocalizedUnicharPref(const char *pref, PRUnichar **_retval){  nsresult rv;  nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv);  if (NS_SUCCEEDED(rv)) {    nsCOMPtr<nsIPrefLocalizedString> theString;    rv = prefBranch->GetComplexValue(pref, NS_GET_IID(nsIPrefLocalizedString),                                       getter_AddRefs(theString));    if (NS_SUCCEEDED(rv)) {      rv = theString->GetData(_retval);    }  }  return rv;}