summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xilink.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xilink.cxx')
-rw-r--r--sc/source/filter/excel/xilink.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/filter/excel/xilink.cxx b/sc/source/filter/excel/xilink.cxx
index 6a5c2bf334f5..38cdc4ceffdc 100644
--- a/sc/source/filter/excel/xilink.cxx
+++ b/sc/source/filter/excel/xilink.cxx
@@ -243,11 +243,11 @@ void XclImpTabInfo::ReadTabid( XclImpStream& rStrm )
if( rStrm.GetRoot().GetBiff() == EXC_BIFF8 )
{
rStrm.EnableDecryption();
- sal_Size nReadCount = rStrm.GetRecLeft() / 2;
+ std::size_t nReadCount = rStrm.GetRecLeft() / 2;
OSL_ENSURE( nReadCount <= 0xFFFF, "XclImpTabInfo::ReadTabid - record too long" );
maTabIdVec.clear();
maTabIdVec.reserve( nReadCount );
- for( sal_Size nIndex = 0; rStrm.IsValid() && (nIndex < nReadCount); ++nIndex )
+ for( std::size_t nIndex = 0; rStrm.IsValid() && (nIndex < nReadCount); ++nIndex )
// zero index is not allowed in BIFF8, but it seems that it occurs in real life
maTabIdVec.push_back( rStrm.ReaduInt16() );
}
@@ -774,8 +774,8 @@ void XclImpLinkManagerImpl::ReadExternsheet( XclImpStream& rStrm )
{
sal_uInt16 nXtiCount;
nXtiCount = rStrm.ReaduInt16();
- OSL_ENSURE( static_cast< sal_Size >( nXtiCount * 6 ) == rStrm.GetRecLeft(), "XclImpLinkManagerImpl::ReadExternsheet - invalid count" );
- nXtiCount = static_cast< sal_uInt16 >( ::std::min< sal_Size >( nXtiCount, rStrm.GetRecLeft() / 6 ) );
+ OSL_ENSURE( static_cast< std::size_t >( nXtiCount * 6 ) == rStrm.GetRecLeft(), "XclImpLinkManagerImpl::ReadExternsheet - invalid count" );
+ nXtiCount = static_cast< sal_uInt16 >( ::std::min< std::size_t >( nXtiCount, rStrm.GetRecLeft() / 6 ) );
/* #i104057# A weird external XLS generator writes multiple EXTERNSHEET
records instead of only one as expected. Surprisingly, Excel seems to