fix build error, this is probably right I hope
This commit is contained in:
parent
11d375a4e7
commit
be2b0483a0
2 changed files with 6 additions and 7 deletions
|
@ -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++ )
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue