rv = mDefaultBranch->GetComplexValue(pref, NS_GET_IID(nsIPrefLocalizedString), getter_AddRefs(theString)); if (NS_SUCCEEDED(rv)) { rv = theString->GetData(_retval); } return rv;
nsXPIDLCString propertyFileURL; rv = CopyDefaultCharPref(pref, getter_Copies(propertyFileURL)); if (NS_FAILED(rv)) return rv;  nsCOMPtr<nsIStringBundleService> bundleService = do_GetService(kStringBundleServiceCID, &rv); NS_ENSURE_SUCCESS(rv, rv);  nsCOMPtr<nsIStringBundle> bundle; rv = bundleService->CreateBundle(propertyFileURL, nsnull, getter_AddRefs(bundle)); if (NS_FAILED(rv)) return rv;   nsAutoString stringId; stringId.AssignWithConversion(pref);  return bundle->GetStringFromName(stringId.GetUnicode(), return_buf);
NS_IMETHODIMP nsPref::GetDefaultLocalizedUnicharPref(const char *pref, PRUnichar **_retval){  nsresult rv;  nsCOMPtr<nsIPrefLocalizedString> theString;  rv = mDefaultBranch->GetComplexValue(pref, NS_GET_IID(nsIPrefLocalizedString),                                       getter_AddRefs(theString));  if (NS_SUCCEEDED(rv)) {    rv = theString->GetData(_retval);  }  return rv;}