diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-06-25 02:46:32 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-06-25 03:57:17 +0200 |
commit | 77533d6ec1c7f0849db0c34b61d6583d7b3d0018 (patch) | |
tree | 5b7d153280db9755da08a3bc6396326ecf0cff80 /sc/source/ui/view/viewfunc.cxx | |
parent | 27b88d815dbbe6d2053add5fa17746bd1ff6a13d (diff) |
pass the ScRangeList directly to improve performance, fdo#49764
Change-Id: I1dde25739747a3481394c6a2c2d313128492ba8e
Diffstat (limited to 'sc/source/ui/view/viewfunc.cxx')
-rw-r--r-- | sc/source/ui/view/viewfunc.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx index 48c9a68344e9..a290e02f0db4 100644 --- a/sc/source/ui/view/viewfunc.cxx +++ b/sc/source/ui/view/viewfunc.cxx @@ -90,9 +90,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 ); } } |