fix semantics of these pref methods to match other pref methods and don't throw exceptions even on failure
r=sspitzer git-svn-id: svn://10.0.0.236/trunk@65017 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
55d7bc92d7
commit
8f4d549ec6
@ -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…
x
Reference in New Issue
Block a user