diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-29 09:59:20 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-06-01 09:58:56 +0200 |
commit | 55bc128636596032c23ee855904822ad813986fc (patch) | |
tree | ba097deaf15579f0148a68679d915e3ba25d52c4 /lotuswordpro/source | |
parent | c9fd4aa8aa969ef2b669813acee15d6efcf1ecde (diff) |
loplugin:loopvartoosmall
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpdrawobj.cxx | 6 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpidxmgr.cxx | 4 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwprowlayout.cxx | 6 | ||||
-rw-r--r-- | lotuswordpro/source/filter/lwpsilverbullet.cxx | 2 | ||||
-rw-r--r-- | lotuswordpro/source/filter/xfilter/xfinputlist.hxx | 2 |
5 files changed, 10 insertions, 10 deletions
diff --git a/lotuswordpro/source/filter/lwpdrawobj.cxx b/lotuswordpro/source/filter/lwpdrawobj.cxx index 5fc78170fd5b..9a605b65b0f4 100644 --- a/lotuswordpro/source/filter/lwpdrawobj.cxx +++ b/lotuswordpro/source/filter/lwpdrawobj.cxx @@ -537,7 +537,7 @@ XFFrame* LwpDrawPolyLine::CreateDrawObj(const OUString& rStyleName ) XFDrawPath* pPolyline = new XFDrawPath(); pPolyline->MoveTo(XFPoint((double)m_pVector[0].x/TWIPS_PER_CM * m_pTransData->fScaleX, (double)m_pVector[0].y/TWIPS_PER_CM * m_pTransData->fScaleY)); - for (sal_uInt8 nC = 1; nC < m_aPolyLineRec.nNumPoints; nC++) + for (sal_uInt16 nC = 1; nC < m_aPolyLineRec.nNumPoints; nC++) { pPolyline->LineTo(XFPoint((double)m_pVector[nC].x/TWIPS_PER_CM * m_pTransData->fScaleX, (double)m_pVector[nC].y/TWIPS_PER_CM * m_pTransData->fScaleY)); @@ -552,7 +552,7 @@ XFFrame* LwpDrawPolyLine::CreateDrawObj(const OUString& rStyleName ) XFFrame* LwpDrawPolyLine::CreateStandardDrawObj(const OUString& rStyleName) { XFDrawPolyline* pPolyline = new XFDrawPolyline(); - for (sal_uInt8 nC = 0; nC < m_aPolyLineRec.nNumPoints; nC++) + for (sal_uInt16 nC = 0; nC < m_aPolyLineRec.nNumPoints; nC++) { pPolyline->AddPoint((double)m_pVector[nC].x/TWIPS_PER_CM, (double)m_pVector[nC].y/TWIPS_PER_CM); @@ -1169,7 +1169,7 @@ void LwpDrawTextArt::CreateFWPath(XFDrawPath* pPath) pPath->MoveTo(aStart); sal_uInt8 nPtIndex = 1; - for (sal_uInt8 nC = 1; nC <= m_aTextArtRec.aPath[0].n; nC++) + for (sal_uInt16 nC = 1; nC <= m_aTextArtRec.aPath[0].n; nC++) { nX = (m_aTextArtRec.aPath[0].pPts[nPtIndex].x + m_aTextArtRec.aPath[1].pPts[nPtIndex].x) / 2; nY = (m_aTextArtRec.aPath[0].pPts[nPtIndex].y + m_aTextArtRec.aPath[1].pPts[nPtIndex].y) / 2; diff --git a/lotuswordpro/source/filter/lwpidxmgr.cxx b/lotuswordpro/source/filter/lwpidxmgr.cxx index 07ea4a1a521f..cba6cd855062 100644 --- a/lotuswordpro/source/filter/lwpidxmgr.cxx +++ b/lotuswordpro/source/filter/lwpidxmgr.cxx @@ -288,14 +288,14 @@ void LwpIndexManager::ReadLeafData( LwpObjectStream *pObjStrm ) akey->id.Read(pObjStrm); m_ObjectKeys.push_back(akey); - for (sal_uInt8 k = 1; k < KeyCount; k++) + for (sal_uInt16 k = 1; k < KeyCount; k++) { akey = new LwpKey(); akey->id.ReadCompressed(pObjStrm, m_ObjectKeys.at(m_nKeyCount+k-1)->id); m_ObjectKeys.push_back(akey); } - for (sal_uInt8 j = 0; j < KeyCount; j++) + for (sal_uInt16 j = 0; j < KeyCount; j++) m_ObjectKeys.at(m_nKeyCount+j)->offset = pObjStrm->QuickReaduInt32(); } m_nKeyCount += KeyCount; diff --git a/lotuswordpro/source/filter/lwprowlayout.cxx b/lotuswordpro/source/filter/lwprowlayout.cxx index e7bae0f15dfc..63eec38c428d 100644 --- a/lotuswordpro/source/filter/lwprowlayout.cxx +++ b/lotuswordpro/source/filter/lwprowlayout.cxx @@ -309,7 +309,7 @@ sal_Int32 LwpRowLayout::FindMarkConnCell(sal_uInt8 nStartCol,sal_uInt8 nEndCol) sal_uInt16 nSpannRows = 1; sal_Int32 nMarkConnCell = -1; - for (sal_uInt16 i=0;i<m_ConnCellList.size();i++) + for (size_t i=0;i<m_ConnCellList.size();i++) { if (m_ConnCellList[i]->GetColID()>=nEndCol) break; @@ -334,7 +334,7 @@ sal_Int32 LwpRowLayout::FindNextMarkConnCell(sal_uInt16 nMarkConnCell,sal_uInt8 { sal_uInt16 nMaxRows = m_ConnCellList[nMarkConnCell]->GetNumrows(); - for (sal_uInt16 i=nMarkConnCell+1;i<m_ConnCellList.size();i++) + for (size_t i=nMarkConnCell+1;i<m_ConnCellList.size();i++) { if (m_ConnCellList[i]->GetColID()>=nEndCol) break; @@ -446,7 +446,7 @@ void LwpRowLayout::CollectMergeInfo() void LwpRowLayout::SetCellSplit(sal_uInt16 nEffectRows) { LwpConnectedCellLayout* pConnCell; - for (sal_uInt32 i=0; i<m_ConnCellList.size(); i++) + for (size_t i=0; i<m_ConnCellList.size(); i++) { pConnCell = m_ConnCellList[i]; sal_uInt16 nRowSpan = pConnCell->GetRowID()+pConnCell->GetNumrows(); diff --git a/lotuswordpro/source/filter/lwpsilverbullet.cxx b/lotuswordpro/source/filter/lwpsilverbullet.cxx index c0c39e946cdb..89da8d781fad 100644 --- a/lotuswordpro/source/filter/lwpsilverbullet.cxx +++ b/lotuswordpro/source/filter/lwpsilverbullet.cxx @@ -97,7 +97,7 @@ void LwpSilverBullet::Read() sal_uInt16 nNumPos = m_pObjStrm->QuickReaduInt16(); - for (sal_uInt8 nC = 0; nC < nNumPos; nC++) + for (sal_uInt16 nC = 0; nC < nNumPos; nC++) m_pResetPositionFlags[nC] = m_pObjStrm->QuickReaduInt8(); m_nUseCount = m_pObjStrm->QuickReaduInt32(); diff --git a/lotuswordpro/source/filter/xfilter/xfinputlist.hxx b/lotuswordpro/source/filter/xfilter/xfinputlist.hxx index a4e36800df04..8f19d4ada9a5 100644 --- a/lotuswordpro/source/filter/xfilter/xfinputlist.hxx +++ b/lotuswordpro/source/filter/xfilter/xfinputlist.hxx @@ -97,7 +97,7 @@ inline void XFInputList::ToXml(IXFStream *pStrm) pAttrList->AddAttribute( "text:value", " " ); pStrm->StartElement( "text:label" ); pStrm->EndElement( "text:label" ); - for(sal_uInt32 i=0; i< m_list.size();i++) + for(size_t i=0; i< m_list.size();i++) { pAttrList->Clear(); pAttrList->AddAttribute( "text:value", m_list[i] ); |