diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-02-07 18:53:29 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-02-21 17:44:57 +0100 |
commit | 9c5bfff952237e45a5dcc653cb7477c454b531f3 (patch) | |
tree | 847ac16b06cccf955367c8ebdd1e5666af9420ff | |
parent | b56614c6bc8d32a68099c7841ba4a4076f584057 (diff) |
Use size_type
Change-Id: I4b4e88d87d96b39186afab1082e5945f441260fe
-rw-r--r-- | sw/source/core/doc/doccorr.cxx | 4 | ||||
-rw-r--r-- | sw/source/core/doc/docdesc.cxx | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/core/doc/doccorr.cxx b/sw/source/core/doc/doccorr.cxx index 7cf46303a17e..76aae573d962 100644 --- a/sw/source/core/doc/doccorr.cxx +++ b/sw/source/core/doc/doccorr.cxx @@ -180,7 +180,7 @@ void SwDoc::CorrAbs(const SwNodeIndex& rOldNode, // fix redlines { SwRedlineTbl& rTbl = getIDocumentRedlineAccess().GetRedlineTbl(); - for (sal_uInt16 n = 0; n < rTbl.size(); ) + for (SwRedlineTbl::size_type n = 0; n < rTbl.size(); ) { // is on position ?? SwRangeRedline *const pRedline( rTbl[ n ] ); @@ -306,7 +306,7 @@ void SwDoc::CorrRel(const SwNodeIndex& rOldNode, { // fix the Redlines SwRedlineTbl& rTbl = getIDocumentRedlineAccess().GetRedlineTbl(); SwPosition aNewPos(rNewPos); - for( sal_uInt16 n = 0; n < rTbl.size(); ++n ) + for( SwRedlineTbl::size_type n = 0; n < rTbl.size(); ++n ) { // lies on the position ?? lcl_PaMCorrRel1( rTbl[ n ], &rOldNode.GetNode(), aNewPos, aNewPos.nContent.GetIndex() + nOffset ); diff --git a/sw/source/core/doc/docdesc.cxx b/sw/source/core/doc/docdesc.cxx index cce02770ca19..c489c627869e 100644 --- a/sw/source/core/doc/docdesc.cxx +++ b/sw/source/core/doc/docdesc.cxx @@ -415,7 +415,7 @@ void SwDoc::ChgPageDesc( sal_uInt16 i, const SwPageDesc &rChged ) // If the numbering scheme has changed we could have QuoVadis/ErgoSum texts // that refer to a changed page, so we invalidate foot notes. SwFtnIdxs& rFtnIdxs = GetFtnIdxs(); - for( sal_uInt16 nPos = 0; nPos < rFtnIdxs.size(); ++nPos ) + for( SwFtnIdxs::size_type nPos = 0; nPos < rFtnIdxs.size(); ++nPos ) { SwTxtFtn *pTxtFtn = rFtnIdxs[ nPos ]; const SwFmtFtn &rFtn = pTxtFtn->GetFtn(); @@ -582,7 +582,7 @@ void SwDoc::PreDelPageDesc(SwPageDesc * pDel) } } - for ( sal_uInt16 j = 0; j < maPageDescs.size(); ++j ) + for ( SwPageDescs::size_type j = 0; j < maPageDescs.size(); ++j ) { if ( maPageDescs[j].GetFollow() == pDel ) { @@ -689,7 +689,7 @@ SwPageDesc* SwDoc::FindPageDesc(const OUString& rName, sal_uInt16* pPos) SwPageDesc* pRet = NULL; if( pPos ) *pPos = USHRT_MAX; - for( sal_uInt16 n = 0, nEnd = maPageDescs.size(); n < nEnd; ++n ) + for( SwPageDescs::size_type n = 0, nEnd = maPageDescs.size(); n < nEnd; ++n ) { if( maPageDescs[ n ].HasName( rName ) ) { @@ -750,7 +750,7 @@ void SwDoc::PrtOLENotify( bool bAll ) 0, pNodes->size(), GetDocShell()); getIDocumentLayoutAccess().GetCurrentLayout()->StartAllAction(); - for( sal_uInt16 i = 0; i < pNodes->size(); ++i ) + for( SwOLENodes::size_type i = 0; i < pNodes->size(); ++i ) { ::SetProgressState( i, GetDocShell() ); @@ -770,7 +770,7 @@ void SwDoc::PrtOLENotify( bool bAll ) } bool bFound = false; - for ( sal_uInt16 j = 0; + for ( std::vector<SvGlobalName*>::size_type j = 0; j < pGlobalOLEExcludeList->size() && !bFound; ++j ) { @@ -808,7 +808,7 @@ IMPL_LINK( SwDoc, DoUpdateModifiedOLE, Timer *, ) getIDocumentLayoutAccess().GetCurrentLayout()->StartAllAction(); SwMsgPoolItem aMsgHint( RES_UPDATE_ATTR ); - for( sal_uInt16 i = 0; i < pNodes->size(); ++i ) + for( SwOLENodes::size_type i = 0; i < pNodes->size(); ++i ) { ::SetProgressState( i, GetDocShell() ); |