summaryrefslogtreecommitdiff
path: root/sc/source/core/data/documen7.cxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2014-12-03 21:09:41 +0100
committerEike Rathke <erack@redhat.com>2014-12-03 23:57:13 +0100
commit7b95b0cc2b7806aa00e5b201e0cd922274d0c04d (patch)
tree611fc30ff2df6729144f697c5e8de3075affc439 /sc/source/core/data/documen7.cxx
parent99270aefbfbec2f759f1f96e8777f76bc113dabc (diff)
do not construct an ScAddress on each iteration
Change-Id: I3c89e649c289cd50035929d4025d0c18968b36f9
Diffstat (limited to 'sc/source/core/data/documen7.cxx')
-rw-r--r--sc/source/core/data/documen7.cxx7
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);
+ }
}
}
}