diff options
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/undo/untblk.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/undo/untblk.cxx b/sw/source/core/undo/untblk.cxx index df6233437ee2..6a35fe2d9b4b 100644 --- a/sw/source/core/undo/untblk.cxx +++ b/sw/source/core/undo/untblk.cxx @@ -50,8 +50,8 @@ SwUndoInserts::SwUndoInserts( SwUndoId nUndoId, const SwPaM& rPam ) if( !nSttCntnt ) // than take the Flys along { - sal_uInt16 nArrLen = pDoc->GetSpzFrmFmts()->size(); - for( sal_uInt16 n = 0; n < nArrLen; ++n ) + const size_t nArrLen = pDoc->GetSpzFrmFmts()->size(); + for( size_t n = 0; n < nArrLen; ++n ) { SwFrmFmt* pFmt = (*pDoc->GetSpzFrmFmts())[n]; SwFmtAnchor const*const pAnchor = &pFmt->GetAnchor(); @@ -103,8 +103,8 @@ void SwUndoInserts::SetInsertRange( const SwPaM& rPam, bool bScanFlys, { // than collect all new Flys SwDoc* pDoc = (SwDoc*)rPam.GetDoc(); - sal_uInt16 nArrLen = pDoc->GetSpzFrmFmts()->size(); - for( sal_uInt16 n = 0; n < nArrLen; ++n ) + const size_t nArrLen = pDoc->GetSpzFrmFmts()->size(); + for( size_t n = 0; n < nArrLen; ++n ) { SwFrmFmt* pFmt = (*pDoc->GetSpzFrmFmts())[n]; SwFmtAnchor const*const pAnchor = &pFmt->GetAnchor(); |