diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-15 16:04:22 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-18 23:22:39 -0400 |
commit | c30a2c4baf54696ed796a5ca0b805e8b67aaa263 (patch) | |
tree | e710fc99df96f81b0a6c445cefc921949c1dd31e /formula | |
parent | 7586151cbea2d3b93b42a42aa8dd157e75ca4f60 (diff) |
More eye-pleasing way of checking for valid vector array...
Change-Id: If2f47a7d98a4cbc9e09dc98c1bb0e11f8f889265
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/vectortoken.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/formula/source/core/api/vectortoken.cxx b/formula/source/core/api/vectortoken.cxx index 206b9c9da8e8..55ab18e27932 100644 --- a/formula/source/core/api/vectortoken.cxx +++ b/formula/source/core/api/vectortoken.cxx @@ -15,6 +15,11 @@ VectorRefArray::VectorRefArray() : mpNumericArray(NULL), mpStringArray(NULL) {} VectorRefArray::VectorRefArray( const double* pArray ) : mpNumericArray(pArray), mpStringArray(NULL) {} VectorRefArray::VectorRefArray( rtl_uString** pArray ) : mpNumericArray(NULL), mpStringArray(pArray) {} +bool VectorRefArray::isValid() const +{ + return mpNumericArray || mpStringArray; +} + SingleVectorRefToken::SingleVectorRefToken( const double* pArray, size_t nLength ) : FormulaToken(svSingleVectorRef, ocPush), maArray(pArray), mnArrayLength(nLength) {} |