comment flat copy sharing code tokens

Change-Id: I80f8f7cc8f812fe412346876593c11aa221cb1b9
This commit is contained in:
Eike Rathke 2016-04-25 22:43:03 +02:00
parent 403d0d4a54
commit 4613f38c50

View file

@ -468,12 +468,16 @@ void ScConditionEntry::MakeCells( const ScAddress& rPos )
{ {
if ( pFormula1 && !pFCell1 && !bRelRef1 ) if ( pFormula1 && !pFCell1 && !bRelRef1 )
{ {
// pFCell1 will hold a flat-copied ScTokenArray sharing ref-counted
// code tokens with pFormula1
pFCell1 = new ScFormulaCell(mpDoc, rPos, *pFormula1); pFCell1 = new ScFormulaCell(mpDoc, rPos, *pFormula1);
pFCell1->StartListeningTo( mpDoc ); pFCell1->StartListeningTo( mpDoc );
} }
if ( pFormula2 && !pFCell2 && !bRelRef2 ) if ( pFormula2 && !pFCell2 && !bRelRef2 )
{ {
// pFCell2 will hold a flat-copied ScTokenArray sharing ref-counted
// code tokens with pFormula2
pFCell2 = new ScFormulaCell(mpDoc, rPos, *pFormula2); pFCell2 = new ScFormulaCell(mpDoc, rPos, *pFormula2);
pFCell2->StartListeningTo( mpDoc ); pFCell2->StartListeningTo( mpDoc );
} }