diff options
author | Tor Lillqvist <tml@collabora.com> | 2017-06-07 16:40:27 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2017-06-07 21:34:03 +0300 |
commit | f01ff6b831a76b3765b41d5bccc815215b1660ae (patch) | |
tree | 69e36e6b5d477810a79d7dd147896ee0026537f4 /sc | |
parent | d08f91b9acb52015c55dbfe7d5f4c4683d5a3e54 (diff) |
Take new FormulaTokenArrayPlainIterator into use in one more place
Change-Id: Idd92333d6c07748a2ae25f0124465d56b2302fbf
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/column3.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/core/data/column3.cxx b/sc/source/core/data/column3.cxx index d481a354f4a2..a19675dd7341 100644 --- a/sc/source/core/data/column3.cxx +++ b/sc/source/core/data/column3.cxx @@ -1229,11 +1229,12 @@ void lcl_AddCode( ScTokenArray& rArr, const ScFormulaCell* pCell ) ScTokenArray* pCode = const_cast<ScFormulaCell*>(pCell)->GetCode(); if (pCode) { - const formula::FormulaToken* pToken = pCode->First(); + FormulaTokenArrayPlainIterator aIter(*pCode); + const formula::FormulaToken* pToken = aIter.First(); while (pToken) { rArr.AddToken( *pToken ); - pToken = pCode->Next(); + pToken = aIter.Next(); } } |