diff options
author | Takeshi Abe <tabe@fixedpoint.jp> | 2012-08-12 09:07:20 +0900 |
---|---|---|
committer | Takeshi Abe <tabe@fixedpoint.jp> | 2012-08-12 09:16:58 +0900 |
commit | 1817cf60d1d5461b57b9b6fdb0b2849bb29389a8 (patch) | |
tree | be18508a066566569701a40d9dda51edd029b637 /basic/source/comp/exprnode.cxx | |
parent | c18c4f0547c5bdc388670af2f1501199c34ef540 (diff) |
sal_Bool to bool
Change-Id: I61a6675df622232923a827fc20bf121dd03cd7da
Diffstat (limited to 'basic/source/comp/exprnode.cxx')
-rw-r--r-- | basic/source/comp/exprnode.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/basic/source/comp/exprnode.cxx b/basic/source/comp/exprnode.cxx index 1ca35fcb1d74..8f1ca35a7584 100644 --- a/basic/source/comp/exprnode.cxx +++ b/basic/source/comp/exprnode.cxx @@ -103,7 +103,7 @@ void SbiExprNode::BaseInit( SbiParser* p ) pLeft = NULL; pRight = NULL; pWithParent = NULL; - bError = sal_False; + bError = false; } SbiExprNode::~SbiExprNode() @@ -224,12 +224,12 @@ void SbiExprNode::CollectBits() if( pLeft ) { pLeft->CollectBits(); - bError |= pLeft->bError; + bError = bError || pLeft->bError; } if( pRight ) { pRight->CollectBits(); - bError |= pRight->bError; + bError = bError || pRight->bError; } } @@ -296,7 +296,7 @@ void SbiExprNode::FoldConstants() break; default: pGen->GetParser()->Error( SbERR_CONVERSION ); - bError = sal_True; + bError = true; } } } @@ -323,7 +323,7 @@ void SbiExprNode::FoldConstants() if( err ) { pGen->GetParser()->Error( SbERR_MATH_OVERFLOW ); - bError = sal_True; + bError = true; } } sal_Bool bBothInt = sal_Bool( pLeft->eType < SbxSINGLE @@ -345,7 +345,7 @@ void SbiExprNode::FoldConstants() if( !nr ) { pGen->GetParser()->Error( SbERR_ZERODIV ); nVal = HUGE_VAL; - bError = sal_True; + bError = true; } else nVal = nl / nr; break; case PLUS: @@ -376,14 +376,14 @@ void SbiExprNode::FoldConstants() if( !lr ) { pGen->GetParser()->Error( SbERR_ZERODIV ); nVal = HUGE_VAL; - bError = sal_True; + bError = true; } else nVal = ll / lr; eType = SbxLONG; break; case MOD: if( !lr ) { pGen->GetParser()->Error( SbERR_ZERODIV ); nVal = HUGE_VAL; - bError = sal_True; + bError = true; } else nVal = llMod % lrMod; eType = SbxLONG; break; case AND: @@ -435,7 +435,7 @@ void SbiExprNode::FoldConstants() if( err ) { pGen->GetParser()->Error( SbERR_MATH_OVERFLOW ); - bError = sal_True; + bError = true; } nVal = (double) ~((long) nVal); eType = SbxLONG; |