diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-20 22:03:52 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-20 22:12:47 +0000 |
commit | 143ab8ded1ecfdb32f634a50ede970b0994bdf84 (patch) | |
tree | 022ebb6b466531d3448de4a04fa76711fa576882 /sc | |
parent | 1c553c98c28ed7b69a779b5ec608ccdb74ed8d34 (diff) |
no need to declare the variable outside of the for loop
Change-Id: I1289d7e9b5f3459882582b494006a69075a0b860
Reviewed-on: https://gerrit.libreoffice.org/23382
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/tool/interpr5.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx index 479b9ca35f8b..22a83758cac3 100644 --- a/sc/source/core/tool/interpr5.cxx +++ b/sc/source/core/tool/interpr5.cxx @@ -1163,7 +1163,6 @@ ScMatrixRef ScInterpreter::MatConcat(const ScMatrixRef& pMat1, const ScMatrixRef { SCSIZE nC1, nC2, nMinC; SCSIZE nR1, nR2, nMinR; - SCSIZE i, j; pMat1->GetDimensions(nC1, nR1); pMat2->GetDimensions(nC2, nR2); nMinC = lcl_GetMinExtent( nC1, nC2); @@ -1171,9 +1170,9 @@ ScMatrixRef ScInterpreter::MatConcat(const ScMatrixRef& pMat1, const ScMatrixRef ScMatrixRef xResMat = GetNewMat(nMinC, nMinR); if (xResMat) { - for (i = 0; i < nMinC; i++) + for (SCSIZE i = 0; i < nMinC; i++) { - for (j = 0; j < nMinR; j++) + for (SCSIZE j = 0; j < nMinR; j++) { sal_uInt16 nErr = pMat1->GetErrorIfNotString( i, j); if (!nErr) |