From c30a2c4baf54696ed796a5ca0b805e8b67aaa263 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Tue, 15 Oct 2013 16:04:22 -0400 Subject: More eye-pleasing way of checking for valid vector array... Change-Id: If2f47a7d98a4cbc9e09dc98c1bb0e11f8f889265 --- formula/source/core/api/vectortoken.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'formula') 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) {} -- cgit