summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-07 11:05:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-07 11:46:58 +0100
commit3c2983ded9f0f646a5b543e16e0d9a9bbf476e4e (patch)
tree7b5b039859fe581648de8ad69e01dee1fc95a830 /basic
parentef53bd8ab2499b0b2bf0b79c0ab090f3de56525f (diff)
CID#707646 uninitialized member variables
also CID#707647 Change-Id: I9962bd2417119944a243d8a92711866548248e36
Diffstat (limited to 'basic')
-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 );
}