summaryrefslogtreecommitdiff
path: root/basic/source
diff options
context:
space:
mode:
Diffstat (limited to 'basic/source')
-rw-r--r--basic/source/comp/exprtree.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/basic/source/comp/exprtree.cxx b/basic/source/comp/exprtree.cxx
index e77bf77923af..e56d70669eb9 100644
--- a/basic/source/comp/exprtree.cxx
+++ b/basic/source/comp/exprtree.cxx
@@ -55,9 +55,11 @@ SbiExpression::SbiExpression( SbiParser* p, SbiExprType t,
SbiExpression::SbiExpression( SbiParser* p, double n, SbxDataType t )
{
pParser = p;
+ bBased = bError = bByVal = bBracket = false;
+ nParenLevel = 0;
eCurExpr = SbOPERAND;
+ m_eMode = EXPRMODE_STANDARD;
pNext = NULL;
- bBased = bError = bByVal = bBracket = false;
pExpr = new SbiExprNode( pParser, n, t );
pExpr->Optimize();
}
@@ -65,9 +67,11 @@ SbiExpression::SbiExpression( SbiParser* p, double n, SbxDataType t )
SbiExpression::SbiExpression( SbiParser* p, const SbiSymDef& r, SbiExprList* pPar )
{
pParser = p;
- pNext = NULL;
bBased = bError = bByVal = bBracket = false;
+ nParenLevel = 0;
eCurExpr = SbOPERAND;
+ m_eMode = EXPRMODE_STANDARD;
+ pNext = NULL;
pExpr = new SbiExprNode( pParser, r, SbxVARIANT, pPar );
}