sc/source/core/tool/formulagroup.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 7ced0f88e0af360d5b47b320b9dd23b692d8d1ad Author: Michael Meeks <michael.me...@collabora.com> Date: Tue Nov 21 17:26:43 2017 +0000 Don't re-create the interpreter context for each row. Change-Id: I272c9dc09806d47add26866f517e6ea07282c35f Reviewed-on: https://gerrit.libreoffice.org/45087 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/sc/source/core/tool/formulagroup.cxx b/sc/source/core/tool/formulagroup.cxx index f6565e732086..b8b1ef1a79a8 100644 --- a/sc/source/core/tool/formulagroup.cxx +++ b/sc/source/core/tool/formulagroup.cxx @@ -175,6 +175,9 @@ public: double fNan; rtl::math::setNan(&fNan); ScTokenArray aCode2; + + ScInterpreterContext aContext(mrDoc, mpFormatter); + for (SCROW i = mnIdx; i <= mnLastIdx; ++i, maBatchTopPos.IncRow()) { formula::FormulaTokenArrayPlainIterator aIter(mrCode); @@ -298,7 +301,6 @@ public: ScCompiler aComp(&mrDoc, maBatchTopPos, aCode2); aComp.CompileTokenArray(); - ScInterpreterContext aContext(mrDoc, mpFormatter); ScInterpreter aInterpreter(pDest, &mrDoc, aContext, maBatchTopPos, aCode2); aInterpreter.Interpret(); mrResults[i] = aInterpreter.GetResultToken(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits