diff options
author | Eike Rathke <erack@redhat.com> | 2014-12-03 21:09:41 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-12-03 23:57:13 +0100 |
commit | 7b95b0cc2b7806aa00e5b201e0cd922274d0c04d (patch) | |
tree | 611fc30ff2df6729144f697c5e8de3075affc439 /sc | |
parent | 99270aefbfbec2f759f1f96e8777f76bc113dabc (diff) |
do not construct an ScAddress on each iteration
Change-Id: I3c89e649c289cd50035929d4025d0c18968b36f9
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/data/documen7.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/source/core/data/documen7.cxx b/sc/source/core/data/documen7.cxx index dc511a58fcb3..45c9416e77db 100644 --- a/sc/source/core/data/documen7.cxx +++ b/sc/source/core/data/documen7.cxx @@ -157,10 +157,15 @@ void ScDocument::BroadcastCells( const ScRange& rRange, sal_uLong nHint ) ScConditionalFormatList* pCondFormList = GetCondFormList(nTab); if (pCondFormList) { + ScAddress aAddress( 0, 0, nTab); for (SCROW nRow = nRow1; nRow <= nRow2; ++nRow) { + aAddress.SetRow(nRow); for (SCCOL nCol = nCol1; nCol <= nCol2; ++nCol) - pCondFormList->SourceChanged(ScAddress(nCol,nRow,nTab)); + { + aAddress.SetCol(nCol); + pCondFormList->SourceChanged(aAddress); + } } } } |