summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:26:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:23 +0200
commit319c5f8fef83cf35701934192af3f7f2985962bd (patch)
treefdea77c6e05abbd16da0adc8cfde037139f8bb3d /idlc
parent427b0baaa221245ded7a943947401b28ca05c573 (diff)
loplugin:simplifybool
Change-Id: I858ab62a2659ae122beff1300387aefc3aa64189
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astexpression.cxx40
1 files changed, 20 insertions, 20 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx
index 75265b99d590..fffeadf49b3e 100644
--- a/idlc/source/astexpression.cxx
+++ b/idlc/source/astexpression.cxx
@@ -799,34 +799,34 @@ bool AstExpression::operator==(AstExpression *pExpr)
switch (m_exprValue->et)
{
case ET_short:
- bRet = (m_exprValue->u.sval == pExpr->getExprValue()->u.sval) ? true : false;
+ bRet = m_exprValue->u.sval == pExpr->getExprValue()->u.sval;
break;
case ET_ushort:
- bRet = (m_exprValue->u.usval == pExpr->getExprValue()->u.usval) ? true : false;
+ bRet = m_exprValue->u.usval == pExpr->getExprValue()->u.usval;
break;
case ET_long:
- bRet = (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? true : false;
+ bRet = m_exprValue->u.lval == pExpr->getExprValue()->u.lval;
break;
case ET_ulong:
- bRet = (m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval) ? true : false;
+ bRet = m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval;
break;
case ET_hyper:
- bRet = (m_exprValue->u.hval == pExpr->getExprValue()->u.hval) ? true : false;
+ bRet = m_exprValue->u.hval == pExpr->getExprValue()->u.hval;
break;
case ET_uhyper:
- bRet = (m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval) ? true : false;
+ bRet = m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval;
break;
case ET_float:
- bRet = (m_exprValue->u.fval == pExpr->getExprValue()->u.fval) ? true : false;
+ bRet = m_exprValue->u.fval == pExpr->getExprValue()->u.fval;
break;
case ET_double:
- bRet = (m_exprValue->u.dval == pExpr->getExprValue()->u.dval) ? true : false;
+ bRet = m_exprValue->u.dval == pExpr->getExprValue()->u.dval;
break;
case ET_byte:
- bRet = (m_exprValue->u.byval == pExpr->getExprValue()->u.byval) ? true : false;
+ bRet = m_exprValue->u.byval == pExpr->getExprValue()->u.byval;
break;
case ET_boolean:
- bRet = (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? true : false;
+ bRet = m_exprValue->u.lval == pExpr->getExprValue()->u.lval;
break;
default:
OSL_ASSERT(false);
@@ -851,34 +851,34 @@ bool AstExpression::compare(AstExpression *pExpr)
switch (m_exprValue->et)
{
case ET_short:
- bRet = (m_exprValue->u.sval == pExpr->getExprValue()->u.sval) ? true : false;
+ bRet = m_exprValue->u.sval == pExpr->getExprValue()->u.sval;
break;
case ET_ushort:
- bRet = (m_exprValue->u.usval == pExpr->getExprValue()->u.usval) ? true : false;
+ bRet = m_exprValue->u.usval == pExpr->getExprValue()->u.usval;
break;
case ET_long:
- bRet = (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? true : false;
+ bRet = m_exprValue->u.lval == pExpr->getExprValue()->u.lval;
break;
case ET_ulong:
- bRet = (m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval) ? true : false;
+ bRet = m_exprValue->u.ulval == pExpr->getExprValue()->u.ulval;
break;
case ET_hyper:
- bRet = (m_exprValue->u.hval == pExpr->getExprValue()->u.hval) ? true : false;
+ bRet = m_exprValue->u.hval == pExpr->getExprValue()->u.hval;
break;
case ET_uhyper:
- bRet = (m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval) ? true : false;
+ bRet = m_exprValue->u.uhval == pExpr->getExprValue()->u.uhval;
break;
case ET_float:
- bRet = (m_exprValue->u.fval == pExpr->getExprValue()->u.fval) ? true : false;
+ bRet = m_exprValue->u.fval == pExpr->getExprValue()->u.fval;
break;
case ET_double:
- bRet = (m_exprValue->u.dval == pExpr->getExprValue()->u.dval) ? true : false;
+ bRet = m_exprValue->u.dval == pExpr->getExprValue()->u.dval;
break;
case ET_byte:
- bRet = (m_exprValue->u.byval == pExpr->getExprValue()->u.byval) ? true : false;
+ bRet = m_exprValue->u.byval == pExpr->getExprValue()->u.byval;
break;
case ET_boolean:
- bRet = (m_exprValue->u.lval == pExpr->getExprValue()->u.lval) ? true : false;
+ bRet = m_exprValue->u.lval == pExpr->getExprValue()->u.lval;
break;
default:
OSL_ASSERT(false);