diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-15 14:56:44 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-18 23:22:39 -0400 |
commit | 7586151cbea2d3b93b42a42aa8dd157e75ca4f60 (patch) | |
tree | d36752372db3648e011ca6c078897a8ddf832d78 /formula | |
parent | 3164924fac45a377b3620ca68e7658be19999359 (diff) |
Allow vector array tokens to store both numeric and string values.
This is achieved by storing two physical arrays in each vector
reference array.
Change-Id: Iafb9e57b86e57e75eed8ff692a6d882c2049f710
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/vectortoken.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/formula/source/core/api/vectortoken.cxx b/formula/source/core/api/vectortoken.cxx index b752f5d669ba..206b9c9da8e8 100644 --- a/formula/source/core/api/vectortoken.cxx +++ b/formula/source/core/api/vectortoken.cxx @@ -11,9 +11,9 @@ namespace formula { -VectorRefArray::VectorRefArray() : mpNumericArray(NULL), mbNumeric(true) {} -VectorRefArray::VectorRefArray( const double* pArray ) : mpNumericArray(pArray), mbNumeric(true) {} -VectorRefArray::VectorRefArray( rtl_uString** pArray ) : mpStringArray(pArray), mbNumeric(false) {} +VectorRefArray::VectorRefArray() : mpNumericArray(NULL), mpStringArray(NULL) {} +VectorRefArray::VectorRefArray( const double* pArray ) : mpNumericArray(pArray), mpStringArray(NULL) {} +VectorRefArray::VectorRefArray( rtl_uString** pArray ) : mpNumericArray(NULL), mpStringArray(pArray) {} SingleVectorRefToken::SingleVectorRefToken( const double* pArray, size_t nLength ) : FormulaToken(svSingleVectorRef, ocPush), maArray(pArray), mnArrayLength(nLength) {} |