nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv); if (NS_SUCCEEDED(rv)) rv = prefBranch->GetPrefType(aPrefName, _retval); return rv;
*return_type = PREF_GetPrefType(pref); return NS_OK;
NS_IMETHODIMP nsPref::GetPrefType(const char *aPrefName, PRInt32 *_retval){  nsresult rv;  nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv);  if (NS_SUCCEEDED(rv))    rv = prefBranch->GetPrefType(aPrefName, _retval);  return rv;}