diff options
author | Eike Rathke <erack@redhat.com> | 2016-04-25 22:43:03 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-04-25 22:46:02 +0200 |
commit | 4613f38c50c719bef36190246e1d13558b4ecbc0 (patch) | |
tree | a4279bcd4d14d2027688e4c3b58271909048293c /sc | |
parent | 403d0d4a5452f2b31edd89d67fbcc532fd7fbf5a (diff) |
comment flat copy sharing code tokens
Change-Id: I80f8f7cc8f812fe412346876593c11aa221cb1b9
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/conditio.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
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 ); } |