Get rid of the index inside FormulaTokenArray

Desktop / LibreOffice - Tor Lillqvist [collabora.com] - 16 June 2017 06:17 EDT

Instead, use FormulaTokenArrrayPlainIterator everywhere, especially in the FormulaCompiler.

This is the final step of a long chain of commits. (Split up into many "uncontroversial" bits, and then this, to make potential bisecting easier.)

Also added a logging operator<< for FormulaTokenArray, for SAL_DEBUG, SAL_INFO etc goodness.

Change-Id: I02fe29f3f1e0dc33e5cba69e594223b4178a12bc Reviewed-on: https://gerrit.libreoffice.org/38851

5c81adc Get rid of the index inside FormulaTokenArray
formula/source/core/api/FormulaCompiler.cxx | 58 ++++++---
formula/source/core/api/token.cxx | 181 +---------------------------
include/formula/FormulaCompiler.hxx | 6 +-
include/formula/tokenarray.hxx | 37 +++---
sc/source/core/tool/compiler.cxx | 51 ++++----
sc/source/core/tool/interpr4.cxx | 5 +-
6 files changed, 91 insertions(+), 247 deletions(-)

Upstream: cgit.freedesktop.org


  • Share