nsresult rv;  nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv); if (NS_FAILED(rv)) return rv;  nsCOMPtr<nsISecurityPref> securityPref = do_QueryInterface(prefBranch, &rv); if (NS_SUCCEEDED(rv)) rv = securityPref->SecuritySetIntPref(pref, value); return rv;
return _convertRes(PREF_SetIntPref(pref, value));
NS_IMETHODIMP nsPref::SecuritySetIntPref(const char *pref, PRInt32 value){  nsresult rv;  nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv);  if (NS_FAILED(rv))    return rv;  nsCOMPtr<nsISecurityPref> securityPref = do_QueryInterface(prefBranch, &rv);  if (NS_SUCCEEDED(rv))    rv = securityPref->SecuritySetIntPref(pref, value);  return rv;}