diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-13 15:21:06 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-13 21:18:08 +0200 |
commit | 3e6f94da60ca9de99ca0f805a36ab2473cf30e78 (patch) | |
tree | 48010759796fb681af9a3707b6da7c723969eeb8 | |
parent | 862bd0d7f7a13f41f3489d2b926c3a229253c6b9 (diff) |
pDoc cannot be null, so drop check for that
Change-Id: I5c295e2f384f09fae9e504c726ccf1bd91ca3264
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102586
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 333806049b3c..d0df03f30485 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -1812,7 +1812,7 @@ ScCompiler::ScCompiler( sc::CompileFormulaContext& rCxt, const ScAddress& rPos, : FormulaCompiler(rArr, bComputeII, bMatrixFlag), pDoc(&rCxt.getDoc()), aPos(rPos), - mpFormatter(pContext? pContext->GetFormatTable() : pDoc->GetFormatTable()), + mpFormatter(pContext ? pContext->GetFormatTable() : pDoc->GetFormatTable()), mpInterpreterContext(pContext), mnCurrentSheetTab(-1), mnCurrentSheetEndPos(0), @@ -1857,7 +1857,7 @@ ScCompiler::ScCompiler( sc::CompileFormulaContext& rCxt, const ScAddress& rPos, : FormulaCompiler(bComputeII, bMatrixFlag), pDoc(&rCxt.getDoc()), aPos(rPos), - mpFormatter(pContext ? pContext->GetFormatTable() : pDoc ? pDoc->GetFormatTable() : nullptr), + mpFormatter(pContext ? pContext->GetFormatTable() : pDoc->GetFormatTable()), mpInterpreterContext(pContext), mnCurrentSheetTab(-1), mnCurrentSheetEndPos(0), |