diff options
Diffstat (limited to 'sc/source/core/data/formulacell.cxx')
-rw-r--r-- | sc/source/core/data/formulacell.cxx | 6 |
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), |