summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2017-05-20 22:08:12 +0200
committerEike Rathke <erack@redhat.com>2017-05-22 11:00:56 +0200
commit5236e847191bbc3fb47a630bec5dbe8ed65679d7 (patch)
treec9a1f98eb5b6f161d36ea709f24fd3490de2e711
parent17dd13922c01a864e5124afc97c9b19f0e29b44c (diff)
const nMatRows, tdf#58874
Change-Id: Ic9e11ed6b8890fe9d3db4b3a9b4d1d8d50838b2e
-rw-r--r--sc/source/core/tool/interpr6.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx
index d0cb8a14b82f..35004f2846bc 100644
--- a/sc/source/core/tool/interpr6.cxx
+++ b/sc/source/core/tool/interpr6.cxx
@@ -504,7 +504,7 @@ static double lcl_IterResult( ScIterFunc eFunc, double fRes, double fMem, sal_uL
void ScInterpreter::IterateParameters( ScIterFunc eFunc, bool bTextAsZero )
{
short nParamCount = GetByte();
- SCSIZE nMatRows = GetRefListArrayMaxSize( nParamCount);
+ const SCSIZE nMatRows = GetRefListArrayMaxSize( nParamCount);
ScMatrixRef xResMat, xResCount;
double fRes = ( eFunc == ifPRODUCT ) ? 1.0 : 0.0;
double fVal = 0.0;