summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx8
-rw-r--r--sc/source/core/tool/address.cxx2
2 files changed, 3 insertions, 7 deletions
diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx
index d6bfc428ccb8..0f0f5e57f134 100644
--- a/sc/source/core/opencl/formulagroupcl.cxx
+++ b/sc/source/core/opencl/formulagroupcl.cxx
@@ -1441,10 +1441,7 @@ public:
{
pCurDVR = static_cast<const formula::DoubleVectorRefToken*>(tmpCur);
- if (!
- ((!pCurDVR->IsStartFixed() && !pCurDVR->IsEndFixed())
- || (pCurDVR->IsStartFixed() && pCurDVR->IsEndFixed()))
- )
+ if (pCurDVR->IsStartFixed() != pCurDVR->IsEndFixed())
throw Unhandled(__FILE__, __LINE__);
}
}
@@ -2182,8 +2179,7 @@ static DynamicKernelArgument* VectorRefFactory( const ScCalcConfig& config, cons
// Window being too small to justify a parallel reduction
if (pDVR->GetRefRowSize() < REDUCE_THRESHOLD)
return new DynamicKernelSlidingArgument<Base>(config, s, ft, pCodeGen, index);
- if ((pDVR->IsStartFixed() && pDVR->IsEndFixed()) ||
- (!pDVR->IsStartFixed() && !pDVR->IsEndFixed()))
+ if (pDVR->IsStartFixed() == pDVR->IsEndFixed())
return new ParallelReductionVectorRef<Base>(config, s, ft, pCodeGen, index);
else // Other cases are not supported as well
return new DynamicKernelSlidingArgument<Base>(config, s, ft, pCodeGen, index);
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index 650d3553612c..31a9c816fd5d 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -961,7 +961,7 @@ static bool isValidSingleton( ScRefFlags nFlags, ScRefFlags nFlags2 )
{
bool bCols = (nFlags & ScRefFlags::COL_VALID) && ((nFlags & ScRefFlags::COL2_VALID) || (nFlags2 & ScRefFlags::COL_VALID));
bool bRows = (nFlags & ScRefFlags::ROW_VALID) && ((nFlags & ScRefFlags::ROW2_VALID) || (nFlags2 & ScRefFlags::ROW_VALID));
- return (bCols && !bRows) || (!bCols && bRows);
+ return bCols != bRows;
}
static ScRefFlags lcl_ScRange_Parse_XL_A1( ScRange& r,