Kaydet (Commit) 8418de72 authored tarafından Vasily Melenchuk's avatar Vasily Melenchuk Kaydeden (comit) Caolán McNamara

tdf#89783: sal_uInt16 replacement by size_t

These replacements allow LO to load, save and mail merge documents having
more than 65536 text frames in total.

Change-Id: I2a302a085c33f55c6b510fd80b5278268e0cdaa4
Reviewed-on: https://gerrit.libreoffice.org/14982Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 9b6b866c
......@@ -1110,7 +1110,7 @@ SwFmt* DocumentStylePoolManager::GetFmtFromPool( sal_uInt16 nId )
OSL_ENSURE( nRCId, "invalid Id" );
while( nArrCnt-- )
for( sal_uInt16 n = 0; n < (*pArray[nArrCnt]).GetFmtCount(); ++n )
for( size_t n = 0; n < (*pArray[nArrCnt]).GetFmtCount(); ++n )
if( nId == ( pNewFmt = (*pArray[ nArrCnt ] ).GetFmt( n ) )->
GetPoolFmtId() )
{
......@@ -2141,7 +2141,7 @@ bool DocumentStylePoolManager::IsPoolFmtUsed( sal_uInt16 nId ) const
{
bFnd = false;
while( nArrCnt-- && !bFnd )
for( sal_uInt16 n = 0; !bFnd && n < (*pArray[nArrCnt]).GetFmtCount(); ++n )
for( size_t n = 0; !bFnd && n < (*pArray[nArrCnt]).GetFmtCount(); ++n )
if( nId == ( pNewFmt = (*pArray[ nArrCnt ] ).GetFmt( n ) )->
GetPoolFmtId() )
bFnd = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment