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

sal_uInt16 to size_t

Change-Id: I8b045cf44b3e62616c8c3e0a896524af13310dd3
üst 5247da4e
......@@ -308,8 +308,8 @@ SwUndoComments_t UndoManager::GetUndoComments() const
"GetUndoComments() called while in list action?");
SwUndoComments_t ret;
sal_uInt16 const nUndoCount(SdrUndoManager::GetUndoActionCount(TopLevel));
for (sal_uInt16 n = 0; n < nUndoCount; ++n)
const size_t nUndoCount(SdrUndoManager::GetUndoActionCount(TopLevel));
for (size_t n = 0; n < nUndoCount; ++n)
{
OUString const comment(
SdrUndoManager::GetUndoActionComment(n, TopLevel));
......@@ -352,8 +352,8 @@ SwUndoComments_t UndoManager::GetRedoComments() const
"GetRedoComments() called while in list action?");
SwUndoComments_t ret;
sal_uInt16 const nRedoCount(SdrUndoManager::GetRedoActionCount(TopLevel));
for (sal_uInt16 n = 0; n < nRedoCount; ++n)
const size_t nRedoCount(SdrUndoManager::GetRedoActionCount(TopLevel));
for (size_t n = 0; n < nRedoCount; ++n)
{
OUString const comment(
SdrUndoManager::GetRedoActionComment(n, TopLevel));
......
......@@ -1127,8 +1127,7 @@ bool SwHistory::Rollback( SwDoc* pDoc, sal_uInt16 nStart )
return false;
SwHistoryHint * pHHt;
sal_uInt16 i;
for ( i = Count(); i > nStart ; )
for ( sal_uInt16 i = Count(); i > nStart ; )
{
pHHt = m_SwpHstry[ --i ];
pHHt->SetInDoc( pDoc, false );
......
......@@ -924,7 +924,7 @@ void SwUndoAttr::RemoveIdx( SwDoc& rDoc )
if ( COMPLETE_STRING != nCntnt )
{
const std::vector<sal_uInt16>& rArr = pHistoryHint->GetArr();
for ( sal_uInt16 i = rArr.size(); i; )
for ( size_t i = rArr.size(); i; )
{
if ( RES_TXTATR_FTN == rArr[ --i ] )
{
......
......@@ -54,7 +54,7 @@ static void lcl_MakeAutoFrms( const SwFrmFmts& rSpzArr, sal_uLong nMovedIndex )
{
SwFlyFrmFmt* pFmt;
const SwFmtAnchor* pAnchor;
for( sal_uInt16 n = 0; n < rSpzArr.size(); ++n )
for( size_t n = 0; n < rSpzArr.size(); ++n )
{
pFmt = (SwFlyFrmFmt*)rSpzArr[n];
pAnchor = &pFmt->GetAnchor();
......@@ -720,7 +720,7 @@ static void lcl_ReAnchorAtCntntFlyFrames( const SwFrmFmts& rSpzArr, SwPosition &
SwFlyFrmFmt* pFmt;
const SwFmtAnchor* pAnchor;
const SwPosition* pAPos;
for( sal_uInt16 n = 0; n < rSpzArr.size(); ++n )
for( size_t n = 0; n < rSpzArr.size(); ++n )
{
pFmt = (SwFlyFrmFmt*)rSpzArr[n];
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