diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-18 22:10:49 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-03-19 13:40:24 -0400 |
commit | 292ffa80bc2665107d7011b2180c2659835d6c26 (patch) | |
tree | 68bbe19230409e38910353905fdbce5ff4b991c2 /formula/source | |
parent | 3a09e0078ae0e25c7317baed471a9c7c1f729794 (diff) |
First cut on checking the token array on whether we could do vectorization.
Not tested yet.
Change-Id: I87f8a8595229d8d8e83526dc0334891d253cf2c7
Diffstat (limited to 'formula/source')
-rw-r--r-- | formula/source/core/api/token.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx index 875055519ddd..84180f02fcf1 100644 --- a/formula/source/core/api/token.cxx +++ b/formula/source/core/api/token.cxx @@ -708,6 +708,11 @@ void FormulaTokenArray::Clear() ClearRecalcMode(); } +void FormulaTokenArray::CheckToken( const FormulaToken& /*r*/ ) +{ + // Do nothing. +} + FormulaToken* FormulaTokenArray::AddToken( const FormulaToken& r ) { return Add( r.Clone() ); @@ -724,6 +729,7 @@ FormulaToken* FormulaTokenArray::Add( FormulaToken* t ) pCode = new FormulaToken*[ MAXCODE ]; if( nLen < MAXCODE-1 ) { + CheckToken(*t); pCode[ nLen++ ] = t; if( t->GetOpCode() == ocPush && ( t->GetType() == svSingleRef || t->GetType() == svDoubleRef ) ) |