diff options
author | Eike Rathke <erack@redhat.com> | 2018-07-26 16:03:44 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2018-07-27 10:49:47 +0200 |
commit | a0a8c958e358d93bb84e26e307d95df05be7f31a (patch) | |
tree | 9f9c6be5e65fec2f888552fe23a89da24195c514 /sc | |
parent | 0d9f755fec6f29b72e9e4d110da3175ade46588c (diff) |
Use IsInArrayContext() instead of (bMatrixFormula || pCur->IsInForceArray())
Change-Id: I50debd5be2e0d4db0b5c57676d03ec33a2c38737
Reviewed-on: https://gerrit.libreoffice.org/58128
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Jenkins
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/inc/interpre.hxx | 4 | ||||
-rw-r--r-- | sc/source/core/tool/interpr4.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/interpr6.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/tool/interpr7.cxx | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index ae62eae0dc2d..e7aec8766811 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -1024,13 +1024,13 @@ inline bool ScInterpreter::IsInArrayContext() const inline void ScInterpreter::MatrixJumpConditionToMatrix() { - if (bMatrixFormula || pCur->IsInForceArray()) + if (IsInArrayContext()) ConvertMatrixJumpConditionToMatrix(); } inline bool ScInterpreter::MatrixParameterConversion() { - if ( (bMatrixFormula || pCur->IsInForceArray() || ScParameterClassification::HasForceArray( pCur->GetOpCode())) && + if ( (IsInArrayContext() || ScParameterClassification::HasForceArray( pCur->GetOpCode())) && !pJumpMatrix && sp > 0 ) return ConvertMatrixParameters(); return false; diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index fe02c2fe765d..4b51b676cc4f 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -1495,7 +1495,7 @@ bool ScInterpreter::ConvertMatrixParameters() // has ForceArray or ReferenceOrForceArray // parameter *somewhere else*) pick a normal // position dependent implicit intersection later. - (eType != formula::ParamClass::Value || bMatrixFormula || pCur->IsInForceArray())) + (eType != formula::ParamClass::Value || IsInArrayContext())) { SCCOL nCol1, nCol2; SCROW nRow1, nRow2; diff --git a/sc/source/core/tool/interpr6.cxx b/sc/source/core/tool/interpr6.cxx index b8ffd45e57db..f1eb0713fc2a 100644 --- a/sc/source/core/tool/interpr6.cxx +++ b/sc/source/core/tool/interpr6.cxx @@ -464,7 +464,7 @@ void IterateMatrix( size_t ScInterpreter::GetRefListArrayMaxSize( short nParamCount ) { size_t nSize = 0; - if (bMatrixFormula || pCur->IsInForceArray()) + if (IsInArrayContext()) { for (short i=1; i <= nParamCount; ++i) { diff --git a/sc/source/core/tool/interpr7.cxx b/sc/source/core/tool/interpr7.cxx index e2dd62717fb9..22c8cb33b3e9 100644 --- a/sc/source/core/tool/interpr7.cxx +++ b/sc/source/core/tool/interpr7.cxx @@ -47,7 +47,7 @@ void ScInterpreter::ScFilterXML() // In array/matrix context node elements' results are to be // subsequently stored. Check this before obtaining any argument from // the stack so the stack type can be used. - if (pJumpMatrix || bMatrixFormula || pCur->IsInForceArray()) + if (pJumpMatrix || IsInArrayContext()) { if (pJumpMatrix) { |