diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-12-15 13:26:28 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-19 18:58:15 +0100 |
commit | d2df54a635963b76fd36610eca3fa213811ac4cb (patch) | |
tree | 94e840c9748d2f3281d54eefe29dd2e68c364c07 /basic | |
parent | faa12d1c8e00468cb6dd1760ecf5653563a1531d (diff) |
Get rid of loop counter variable
Change-Id: Ia4f4e24819525287e720a9c016b3666bc006b545
Reviewed-on: https://gerrit.libreoffice.org/46531
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 8de8e0ce218dbb9e74d2a41517d5f6b1d36f478f)
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index 3c223f3010e7..829db9b695e4 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -880,10 +880,7 @@ Type getUnoTypeForSbxValue( const SbxValue* pVal ) // this one - otherwise the whole will be considered as Any-Sequence bool bNeedsInit = true; - sal_Int32 nSize = nUpper - nLower + 1; - sal_Int32 aIdx[1]; - aIdx[0] = nLower; - for (sal_Int32 i = 0; i < nSize; ++i, ++aIdx[0]) + for (sal_Int32 aIdx[1] = { nLower }; aIdx[0] <= nUpper; ++aIdx[0]) { SbxVariableRef xVar = pArray->Get32(aIdx); Type aType = getUnoTypeForSbxValue( xVar.get() ); |