summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-08-30 11:14:28 +0300
committerTor Lillqvist <tml@collabora.com>2017-08-30 11:29:37 +0300
commit1cfb07cb0b8dfa1d2db945622f52a2a9bead7083 (patch)
treebd2d7d3bddca84e682a53605d1ffa3a0f69a25dd /sc
parentdfdc113bbd852e8f4b4863db457e2938aaad0c64 (diff)
This variable can be const, and calculated once before the loop
Change-Id: I18aa862a6568891f1c44d5b6da78fc2ac45e8075
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/grouptokenconverter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/grouptokenconverter.cxx b/sc/source/core/data/grouptokenconverter.cxx
index f32632d7adab..0418cf98fc3b 100644
--- a/sc/source/core/data/grouptokenconverter.cxx
+++ b/sc/source/core/data/grouptokenconverter.cxx
@@ -102,6 +102,7 @@ bool ScGroupTokenConverter::convert( const ScTokenArray& rCode, sc::FormulaLogge
}
#endif
+ const SCROW nLen = mrCell.GetCellGroup()->mnLength;
formula::FormulaTokenArrayPlainIterator aIter(rCode);
for (const formula::FormulaToken* p = aIter.First(); p; p = aIter.Next())
{
@@ -110,7 +111,6 @@ bool ScGroupTokenConverter::convert( const ScTokenArray& rCode, sc::FormulaLogge
// vector reference token. Note: we only care about relative vs
// absolute reference state for row directions.
- SCROW nLen = mrCell.GetCellGroup()->mnLength;
switch (p->GetType())
{
case svSingleRef: