summaryrefslogtreecommitdiff
path: root/basic/source/inc
diff options
context:
space:
mode:
authorArnaud Versini <arnaud.versini@gmail.com>2016-02-07 11:22:41 +0100
committerNoel Grandin <noelgrandin@gmail.com>2016-02-08 06:06:40 +0000
commitc474e610e453d0f38f7cc6cb9559ad7e7b5d69ca (patch)
treecac76efc5ef84e5544370187fab8e40245bf5a3f /basic/source/inc
parent5381db92dea6c2e11af49a48fa0b72af666f3f32 (diff)
BASIC : Use vector in SbiExprList to avoid any dependencies
Change-Id: I1ae88ae9c4276452a00aadaaadebf582e639b15a Reviewed-on: https://gerrit.libreoffice.org/22174 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/inc')
-rw-r--r--basic/source/inc/expr.hxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/basic/source/inc/expr.hxx b/basic/source/inc/expr.hxx
index eac1c8a75966..09fed34fdad6 100644
--- a/basic/source/inc/expr.hxx
+++ b/basic/source/inc/expr.hxx
@@ -160,7 +160,6 @@ class SbiExpression {
protected:
OUString aArgName;
SbiParser* pParser;
- SbiExpression* pNext; // link at parameter lists
SbiExprNode* pExpr; // expression tree
SbiExprType eCurExpr; // type of expression
SbiExprMode m_eMode; // expression context
@@ -218,8 +217,7 @@ public: // numeric constant
};
class SbiExprList final { // class for parameters and dims
- SbiExpression* pFirst;
- short nExpr;
+ std::vector<SbiExpression*> aData;
short nDim;
bool bError;
bool bBracket;
@@ -230,7 +228,7 @@ public:
static SbiExprList* ParseDimList( SbiParser* );
bool IsBracket() { return bBracket; }
bool IsValid() { return !bError; }
- short GetSize() { return nExpr; }
+ short GetSize() { return aData.size(); }
short GetDims() { return nDim; }
SbiExpression* Get( short );
void Gen( SbiCodeGen& rGen); // code generation