summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/tool/token.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 33e520723213..364913e4fa99 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -370,15 +370,9 @@ FormulaToken* ScRawToken::CreateToken(ScSheetLimits& rLimits) const
return new FormulaStringOpToken(eOp, std::move(aSS));
}
case svSingleRef :
- if (eOp == ocPush)
- return new ScSingleRefToken(rLimits, aRef.Ref1 );
- else
- return new ScSingleRefToken(rLimits, aRef.Ref1, eOp );
+ return new ScSingleRefToken(rLimits, aRef.Ref1, eOp);
case svDoubleRef :
- if (eOp == ocPush)
- return new ScDoubleRefToken(rLimits, aRef );
- else
- return new ScDoubleRefToken(rLimits, aRef, eOp );
+ return new ScDoubleRefToken(rLimits, aRef, eOp);
case svMatrix :
IF_NOT_OPCODE_ERROR( ocPush, ScMatrixToken);
return new ScMatrixToken( pMat );