mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-29 05:05:29 +00:00
fix semantics of these pref methods to match other pref methods and don't throw exceptions even on failure
r=sspitzer
This commit is contained in:
parent
5fd1e516f9
commit
5dec8ab6b2
@ -103,7 +103,9 @@ nsSmtpServer::GetTrySSL(PRInt32 *trySSL)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
*trySSL= 0;
|
||||
getPrefString("try_ssl", pref);
|
||||
return prefs->GetIntPref(pref, trySSL);
|
||||
rv = prefs->GetIntPref(pref, trySSL);
|
||||
if (NS_FAILED(rv)) *trySSL = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
@ -127,7 +129,9 @@ nsSmtpServer::GetAuthMethod(PRInt32 *authMethod)
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
*authMethod = 0;
|
||||
getPrefString("auth_method", pref);
|
||||
return prefs->GetIntPref(pref, authMethod);
|
||||
rv = prefs->GetIntPref(pref, authMethod);
|
||||
if (NS_FAILED(rv)) *authMethod = 0;
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
|
Loading…
Reference in New Issue
Block a user