mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
better fix with correct casting
This commit is contained in:
parent
fc7ca943b3
commit
1a150e23ae
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user