nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv); if (NS_SUCCEEDED(rv)) rv = prefBranch->PrefIsLocked(aPrefName, _retval); return rv;
*res = PREF_PrefIsLocked(pref); return NS_OK;
NS_IMETHODIMP nsPref::PrefIsLocked(const char *aPrefName, PRBool *_retval){  nsresult rv;  nsCOMPtr<nsIPrefBranch> prefBranch = do_QueryInterface(mPrefService, &rv);  if (NS_SUCCEEDED(rv))    rv = prefBranch->PrefIsLocked(aPrefName, _retval);  return rv;}