Kaydet (Commit) b366adcf authored tarafından Eike Rathke's avatar Eike Rathke

Invert logic, include only known good, tdf#114251 related

Change-Id: Ic362ad6c35f7f6374fc262029251e48e4f82d778
Reviewed-on: https://gerrit.libreoffice.org/46863Reviewed-by: 's avatarEike Rathke <erack@redhat.com>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
üst f6c2fd1c
......@@ -1670,11 +1670,18 @@ void ScTokenArray::CheckToken( const FormulaToken& r )
// All the rest, special commands, separators, error codes, ...
switch (eOp)
{
default:
// Default is off, no vectorization.
// Mentioning some specific values below to indicate why.
case ocName:
// Named expression would need "recursive" handling of its
// token array for vector state in
// ScFormulaCell::InterpretFormulaGroup() and below.
case ocDBArea:
// Certainly not a vectorization of the entire area..
case ocTableRef:
// May result in a single cell or range reference, depending on
// context.
......@@ -1692,8 +1699,30 @@ void ScTokenArray::CheckToken( const FormulaToken& r )
mbOpenCLEnabled = false;
CheckForThreading(eOp);
break;
default:
; // nothing
// Known good, don't change state.
case ocStop:
case ocExternal:
case ocOpen:
case ocClose:
case ocSep:
case ocArrayOpen:
case ocArrayRowSep:
case ocArrayColSep:
case ocArrayClose:
case ocMissing:
case ocBad:
case ocSpaces:
case ocSkip:
case ocPercentSign:
case ocErrNull:
case ocErrDivZero:
case ocErrValue:
case ocErrRef:
case ocErrName:
case ocErrNum:
case ocErrNA:
break;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment