[Libreoffice-commits] .: sc/source
Caolán McNamara
caolan at kemper.freedesktop.org
Thu Jan 6 04:21:11 PST 2011
sc/source/core/data/conditio.cxx | 6 +++---
sc/source/ui/view/viewfunc.cxx | 7 +++----
2 files changed, 6 insertions(+), 7 deletions(-)
New commits:
commit 286cf61c8da1080e4c9f304ed4118ef717fb4548
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 6 12:19:43 2011 +0000
fix build error, this is probably right I hope
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index 714c9e8..06c8ab9 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -745,10 +745,10 @@ static BOOL lcl_GetCellContent( ScBaseCell* pCell, BOOL bIsStr1, double& rArg, S
static BOOL lcl_IsDuplicate( ScDocument *pDoc, double nArg, const String& rStr, const ScAddress& rAddr, const ScRangeListRef& rRanges )
{
- ULONG nListCount = rRanges->Count();
- for( ULONG i = 0; i < nListCount; i++ )
+ size_t nListCount = rRanges->size();
+ for( size_t i = 0; i < nListCount; i++ )
{
- ScRange *aRange = rRanges->GetObject(i);
+ const ScRange *aRange = (*rRanges)[i];
SCROW nRow = aRange->aEnd.Row();
SCCOL nCol = aRange->aEnd.Col();
for( SCROW r = aRange->aStart.Row(); r <= nRow; r++ )
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 16e48cc..2a8b576 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -98,10 +98,9 @@ static void lcl_PostRepaintCondFormat( const ScConditionalFormat *pCondFmt, ScDo
if( pCondFmt )
{
const ScRangeListRef& aRanges = pCondFmt->GetRangeInfo();
- ULONG nCount = aRanges->Count();
- ULONG n;
- for( n = 0 ; n < nCount; n++ )
- pDocSh->PostPaint( *aRanges->GetObject( n ), PAINT_ALL );
+ size_t nCount = aRanges->size();
+ for( size_t n = 0 ; n < nCount; n++ )
+ pDocSh->PostPaint( *((*aRanges)[n]), PAINT_ALL );
}
}
More information about the Libreoffice-commits
mailing list