diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-06-08 14:37:39 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-06-08 19:37:10 +0300 |
commit | 90435528f4d73978b1d42da9b8daacc807719c99 (patch) | |
tree | 2ca40b449cbd101b804df68d24d4ae76cbb5b5a1 /formula | |
parent | 45a7f5b62d0b1b21763c1c94255ef2309ea4280b (diff) |
Forgot FormulaTokenArrayPlainIterator::GetNextName()
Change-Id: I3a485518be1372c9c56137c35cefdbc8d0362fe4
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/core/api/token.cxx | 14 |
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 ); |