From 4613f38c50c719bef36190246e1d13558b4ecbc0 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Mon, 25 Apr 2016 22:43:03 +0200 Subject: comment flat copy sharing code tokens Change-Id: I80f8f7cc8f812fe412346876593c11aa221cb1b9 --- sc/source/core/data/conditio.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sc') diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx index 49b0f3ab829a..e1a42f887448 100644 --- a/sc/source/core/data/conditio.cxx +++ b/sc/source/core/data/conditio.cxx @@ -468,12 +468,16 @@ void ScConditionEntry::MakeCells( const ScAddress& rPos ) { 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->StartListeningTo( mpDoc ); } 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->StartListeningTo( mpDoc ); } -- cgit