summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 02:46:32 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-25 03:58:14 +0200
commit4f6d6912e9916496a1a54cea6df10f7529dca378 (patch)
tree90580fd00d565610ca638f1164a29e02253456b8 /sc
parenta266f82d2199974dee0429ddc263d2ca2cecea1c (diff)
pass the ScRangeList directly to improve performance, fdo#49764
Change-Id: I1dde25739747a3481394c6a2c2d313128492ba8e
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/viewfunc.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index c5d100677989..a82485d1bccf 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -97,9 +97,7 @@ static void lcl_PostRepaintCondFormat( const ScConditionalFormat *pCondFmt, ScDo
{
const ScRangeList& rRanges = pCondFmt->GetRange();
- size_t nCount = rRanges.size();
- for( size_t n = 0 ; n < nCount; n++ )
- pDocSh->PostPaint( *(rRanges[n]), PAINT_ALL );
+ pDocSh->PostPaint( rRanges, PAINT_ALL );
}
}