summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--formula/source/core/api/token.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index 703c0eca5c29..978dc2e198b6 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -1696,6 +1696,20 @@ void FormulaTokenIterator::Reset()
maStack.back().nPC = -1;
}
+FormulaToken* FormulaTokenArrayPlainIterator::GetNextName()
+{
+ if( mrFTA.pCode )
+ {
+ while ( mnIndex < mrFTA.nLen )
+ {
+ FormulaToken* t = mrFTA.pCode[ mnIndex++ ];
+ if( t->GetType() == svIndex )
+ return t;
+ }
+ } // if( pCode )
+ return nullptr;
+}
+
const FormulaToken* FormulaTokenIterator::Next()
{
const FormulaToken* t = GetNonEndOfPathToken( ++maStack.back().nPC );