sw/source/core/doc/DocumentRedlineManager.cxx | 6 +++--- sw/source/core/doc/dbgoutsw.cxx | 2 +- sw/source/core/doc/tblrwcl.cxx | 2 +- sw/source/core/txtnode/ndhints.cxx | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-)
New commits: commit 5b87ff40857147bee697a9bf420aae89e8cd9e93 Author: Noel Grandin <n...@peralex.com> Date: Tue Jun 2 15:07:05 2015 +0200 loplugin:loopvartoosmall Change-Id: Ieac705a950237ad52a3768f7b7fff5807c6dbb47 diff --git a/sw/source/core/doc/DocumentRedlineManager.cxx b/sw/source/core/doc/DocumentRedlineManager.cxx index 02dcdf8..1bd8776 100644 --- a/sw/source/core/doc/DocumentRedlineManager.cxx +++ b/sw/source/core/doc/DocumentRedlineManager.cxx @@ -72,10 +72,10 @@ using namespace com::sun::star; const SwRedlineTable& rTable = redlineAccess.GetRedlineTable(); // verify valid redline positions - for( sal_uInt16 i = 0; i < rTable.size(); ++i ) + for( size_t i = 0; i < rTable.size(); ++i ) lcl_CheckPam( rTable[ i ] ); - for( sal_uInt16 j = 0; j < rTable.size(); ++j ) + for( size_t j = 0; j < rTable.size(); ++j ) { // check for empty redlines OSL_ENSURE( ( *(rTable[j]->GetPoint()) != *(rTable[j]->GetMark()) ) || @@ -84,7 +84,7 @@ using namespace com::sun::star; } // verify proper redline sorting - for( sal_uInt16 n = 1; n < rTable.size(); ++n ) + for( size_t n = 1; n < rTable.size(); ++n ) { const SwRangeRedline* pPrev = rTable[ n-1 ]; const SwRangeRedline* pCurrent = rTable[ n ]; diff --git a/sw/source/core/doc/dbgoutsw.cxx b/sw/source/core/doc/dbgoutsw.cxx index 50afa2e..d88be7b 100644 --- a/sw/source/core/doc/dbgoutsw.cxx +++ b/sw/source/core/doc/dbgoutsw.cxx @@ -797,7 +797,7 @@ static OUString lcl_dbg_out(SwOutlineNodes & rNodes) { OUString aStr("[\n"); - for (sal_uInt16 i = 0; i < rNodes.size(); i++) + for (size_t i = 0; i < rNodes.size(); i++) { aStr += lcl_dbg_out(*rNodes[i]); aStr += "\n"; diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx index cfec58e..9419d27 100644 --- a/sw/source/core/doc/tblrwcl.cxx +++ b/sw/source/core/doc/tblrwcl.cxx @@ -173,7 +173,7 @@ typedef bool (*FN_lcl_SetBoxWidth)(SwTableLine*, CR_SetBoxWidth&, SwTwips, bool #define CHECKTABLELAYOUT \ { \ - for ( sal_uInt16 i = 0; i < GetTabLines().size(); ++i ) \ + for ( size_t i = 0; i < GetTabLines().size(); ++i ) \ { \ SwFrameFormat* pFormat = GetTabLines()[i]->GetFrameFormat(); \ SwIterator<SwRowFrm,SwFormat> aIter( *pFormat ); \ diff --git a/sw/source/core/txtnode/ndhints.cxx b/sw/source/core/txtnode/ndhints.cxx index cb31243..24f52d8 100644 --- a/sw/source/core/txtnode/ndhints.cxx +++ b/sw/source/core/txtnode/ndhints.cxx @@ -359,7 +359,7 @@ bool SwpHintsArray::Check(bool bPortionsMerged) const // 10) dummy char check (unfortunately cannot check SwTextNode::m_Text) if (pHtThis->HasDummyChar()) { - for ( sal_uInt16 j = 0; j < i; ++j ) + for ( size_t j = 0; j < i; ++j ) { SwTextAttr const * const pOther( m_HintStarts[j] ); if (pOther->HasDummyChar()) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits