summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-06-08 15:19:45 +0300
committerTor Lillqvist <tml@collabora.com>2017-06-08 19:37:12 +0300
commitc8bc5869188b15d53dfbfaa3e2b8274fd6971b01 (patch)
tree621a526bde4d16b28c871c1ed2d6551c0a370ba2 /sc
parentcf7fbfa496c77f0f4fc4db6c5cec19be6521275f (diff)
Take FormulaTokenArrayPlainIterator into use in one more place
Change-Id: If81494b9279d3c1f2c3887097f1b0036c18cab78
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/simpleformulacalc.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/core/data/simpleformulacalc.cxx b/sc/source/core/data/simpleformulacalc.cxx
index ad4f01fc99bf..8e78e81f3000 100644
--- a/sc/source/core/data/simpleformulacalc.cxx
+++ b/sc/source/core/data/simpleformulacalc.cxx
@@ -133,8 +133,7 @@ svl::SharedString ScSimpleFormulaCalculator::GetString()
bool ScSimpleFormulaCalculator::HasColRowName()
{
- mpCode->Reset();
- return mpCode->GetNextColRowName() != nullptr;
+ return formula::FormulaTokenArrayPlainIterator(*mpCode).GetNextColRowName() != nullptr;
}
ScTokenArray* ScSimpleFormulaCalculator::GetCode()