summaryrefslogtreecommitdiff
path: root/sc/source/core/data/formulacell.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-09-13 15:32:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-09-13 21:18:28 +0200
commit61fa9c8cbf1792fad2bdc8f86a2825f759d18950 (patch)
treef05868a3e5cd47d4be066e6f52b44e0b09d89f88 /sc/source/core/data/formulacell.cxx
parent3e6f94da60ca9de99ca0f805a36ab2473cf30e78 (diff)
ScFormulaCell ctor variant never passed a null ScDocument
Change-Id: Ic96245d22c717d4360fe73855aaca9eaa1fd206d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102587 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/core/data/formulacell.cxx')
-rw-r--r--sc/source/core/data/formulacell.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/formulacell.cxx b/sc/source/core/data/formulacell.cxx
index 81279a1e4936..228150525db0 100644
--- a/sc/source/core/data/formulacell.cxx
+++ b/sc/source/core/data/formulacell.cxx
@@ -769,7 +769,7 @@ ScFormulaCell::ScFormulaCell(
}
ScFormulaCell::ScFormulaCell(
- ScDocument* pDoc, const ScAddress& rPos, const ScFormulaCellGroupRef& xGroup,
+ ScDocument& rDoc, const ScAddress& rPos, const ScFormulaCellGroupRef& xGroup,
const FormulaGrammar::Grammar eGrammar, ScMatrixMode cInd ) :
mxGroup(xGroup),
bDirty(true),
@@ -790,8 +790,8 @@ ScFormulaCell::ScFormulaCell(
nSeenInIteration(0),
nFormatType(xGroup->mnFormatType),
eTempGrammar( eGrammar),
- pCode(xGroup->mpCode ? xGroup->mpCode.get() : new ScTokenArray(pDoc)),
- pDocument( pDoc ),
+ pCode(xGroup->mpCode ? xGroup->mpCode.get() : new ScTokenArray(&rDoc)),
+ pDocument( &rDoc ),
pPrevious(nullptr),
pNext(nullptr),
pPreviousTrack(nullptr),