[Libreoffice-commits] .: Branch 'libreoffice-3-6' - sc/source
Markus Mohrhard
mmohrhard at kemper.freedesktop.org
Sun Jun 24 19:00:10 PDT 2012
sc/source/ui/view/viewfunc.cxx | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
New commits:
commit 4f6d6912e9916496a1a54cea6df10f7529dca378
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Jun 25 02:46:32 2012 +0200
pass the ScRangeList directly to improve performance, fdo#49764
Change-Id: I1dde25739747a3481394c6a2c2d313128492ba8e
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index c5d1006..a82485d 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 );
}
}
More information about the Libreoffice-commits
mailing list