nsresult rv;  nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv); if (NS_SUCCEEDED(rv)) rv = prefBranch->GetIntPref(aPrefName, _retval); return rv;
if (NS_FAILED(SecurePrefCheck(pref))) return NS_ERROR_FAILURE; return _convertRes(PREF_GetIntPref(pref, return_int, PR_FALSE));
NS_IMETHODIMP nsPref::GetIntPref(const char *aPrefName, PRInt32 *_retval){  nsresult rv;  nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv);  if (NS_SUCCEEDED(rv))    rv = prefBranch->GetIntPref(aPrefName, _retval);  return rv;}