Kaydet (Commit) dded2e25 authored tarafından Matteo Casalin's avatar Matteo Casalin

sal_uInt16 to size_t

Change-Id: Ia8795223224a6d2772f12ad41d7691517db80714
üst 63b90217
......@@ -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();
......
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