From 77533d6ec1c7f0849db0c34b61d6583d7b3d0018 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 25 Jun 2012 02:46:32 +0200 Subject: pass the ScRangeList directly to improve performance, fdo#49764 Change-Id: I1dde25739747a3481394c6a2c2d313128492ba8e --- sc/source/ui/view/viewfunc.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sc/source/ui/view/viewfunc.cxx') 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 ); } } -- cgit