summaryrefslogtreecommitdiff
path: root/formula
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-26 15:43:28 +0200
committerNoel Grandin <noel@peralex.com>2016-04-27 15:03:40 +0200
commit5e4fc9540993ee5e10f1986918acdd868a1fcf1b (patch)
treece8220d974c5e7994c82fb35b7bee0f7fd21a7ed /formula
parent0c2d6574c6cca4bbb0cc469fb2c976774394e01a (diff)
clang-tidy modernize-loop-convert in f*
Change-Id: Id866aa244378758e3bdb9e99d02cdd2ae6104e16
Diffstat (limited to 'formula')
-rw-r--r--formula/source/core/api/FormulaCompiler.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/formula/source/core/api/FormulaCompiler.cxx b/formula/source/core/api/FormulaCompiler.cxx
index 08300f535f81..96bb268c12f1 100644
--- a/formula/source/core/api/FormulaCompiler.cxx
+++ b/formula/source/core/api/FormulaCompiler.cxx
@@ -475,9 +475,9 @@ uno::Sequence< sheet::FormulaOpCodeMapEntry > FormulaCompiler::OpCodeMap::create
} // if (aVec.size() < nCount)
FormulaOpCodeMapEntry aEntry;
- for (size_t i=0; i < nCount; ++i)
+ for (auto& i : aMap)
{
- size_t nIndex = static_cast< size_t >( aMap[i].nOff );
+ size_t nIndex = static_cast< size_t >( i.nOff );
if (aVec.size() <= nIndex)
{
// The offsets really should be aligned with the size, so if
@@ -487,7 +487,7 @@ uno::Sequence< sheet::FormulaOpCodeMapEntry > FormulaCompiler::OpCodeMap::create
aEntry.Token.OpCode = getOpCodeUnknown();
aVec.resize( nIndex + 1, aEntry );
}
- aEntry.Token.OpCode = aMap[i].eOp;
+ aEntry.Token.OpCode = i.eOp;
aVec[nIndex] = aEntry;
}
}