better fix with correct casting

This commit is contained in:
alecf%netscape.com 2000-05-12 04:32:10 +00:00
parent fc7ca943b3
commit 1a150e23ae

View File

@ -1200,7 +1200,10 @@ nsMsgSearchTerm::GetBooleanAnd(PRBool *aResult)
NS_IMETHODIMP
nsMsgSearchTerm::SetBooleanAnd(PRBool aValue)
{
m_booleanOp = (aValue) ? nsMsgSearchBooleanOp::BooleanAND : nsMsgSearchBooleanOp::BooleanOR;
if (aValue)
m_booleanOp = nsMsgSearchBooleanOperator(nsMsgSearchBooleanOp::BooleanAND);
else
m_booleanOp = nsMsgSearchBooleanOperator(nsMsgSearchBooleanOp::BooleanOR);
return NS_OK;
}