diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2017-12-15 13:26:28 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-15 19:54:16 +0100 |
commit | 8de8e0ce218dbb9e74d2a41517d5f6b1d36f478f (patch) | |
tree | 05eb8109b941ee69364246f4471ba0fb3c3ff3b1 /basic/source | |
parent | 29055defc8a5e62279bab66faa4ccc191004a918 (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>
Diffstat (limited to 'basic/source')
-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() ); |