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 /filter/source | |
parent | c9fd4aa8aa969ef2b669813acee15d6efcf1ecde (diff) |
loplugin:loopvartoosmall
Change-Id: I86ff38a90018a2ddfb2db3babf67168b0e6257a5
Diffstat (limited to 'filter/source')
-rw-r--r-- | filter/source/flash/swfexporter.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/eps/eps.cxx | 2 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/actimpr.cxx | 4 | ||||
-rw-r--r-- | filter/source/graphicfilter/icgm/class4.cxx | 2 | ||||
-rw-r--r-- | filter/source/pdf/impdialog.cxx | 2 | ||||
-rw-r--r-- | filter/source/svg/svgexport.cxx | 2 | ||||
-rw-r--r-- | filter/source/svg/svgreader.cxx | 2 | ||||
-rw-r--r-- | filter/source/svg/svgwriter.cxx | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/filter/source/flash/swfexporter.cxx b/filter/source/flash/swfexporter.cxx index f7e5250102de..8b6be55e7341 100644 --- a/filter/source/flash/swfexporter.cxx +++ b/filter/source/flash/swfexporter.cxx @@ -774,7 +774,7 @@ sal_uInt32 FlashExporter::ActionSummer(Reference< XShapes >& xShapes) Reference< XShape > xShape2; - for( sal_uInt16 nShape = 0; nShape < nShapeCount; nShape++ ) + for( sal_uInt32 nShape = 0; nShape < nShapeCount; nShape++ ) { xShapes->getByIndex( nShape ) >>= xShape2; diff --git a/filter/source/graphicfilter/eps/eps.cxx b/filter/source/graphicfilter/eps/eps.cxx index 1cc70b997546..926d01217244 100644 --- a/filter/source/graphicfilter/eps/eps.cxx +++ b/filter/source/graphicfilter/eps/eps.cxx @@ -2601,7 +2601,7 @@ void PSWriter::ImplWriteF( sal_Int32 nNumber, sal_uLong nCount, sal_uLong nMode } } mnCursorPos += nLen; - for( sal_uInt16 n = 0UL; n < nLen; n++ ) + for( sal_uLong n = 0; n < nLen; n++ ) { if ( n == nLen - nCount ) { diff --git a/filter/source/graphicfilter/icgm/actimpr.cxx b/filter/source/graphicfilter/icgm/actimpr.cxx index 1e73c13c5538..206a54607b19 100644 --- a/filter/source/graphicfilter/icgm/actimpr.cxx +++ b/filter/source/graphicfilter/icgm/actimpr.cxx @@ -701,7 +701,7 @@ void CGMImpressOutAct::DrawPolyPolygon( tools::PolyPolygon& rPolyPolygon ) drawing::PointSequence* pOuterSequence = aRetval.Coordinates.getArray(); drawing::FlagSequence* pOuterFlags = aRetval.Flags.getArray(); - for( sal_uInt16 a = 0; a < nNumPolys; a++ ) + for( sal_uInt32 a = 0; a < nNumPolys; a++ ) { Polygon aPolygon( rPolyPolygon.GetObject( a ) ); sal_uInt32 nNumPoints = aPolygon.GetSize(); @@ -714,7 +714,7 @@ void CGMImpressOutAct::DrawPolyPolygon( tools::PolyPolygon& rPolyPolygon ) awt::Point* pInnerSequence = pOuterSequence->getArray(); drawing::PolygonFlags* pInnerFlags = pOuterFlags->getArray(); - for( sal_uInt16 b = 0; b < nNumPoints; b++ ) + for( sal_uInt32 b = 0; b < nNumPoints; b++ ) { *pInnerSequence++ = awt::Point( aPolygon.GetPoint( b ).X(), aPolygon.GetPoint( b ).Y() ) ; *pInnerFlags++ = (drawing::PolygonFlags)aPolygon.GetFlags( b ); diff --git a/filter/source/graphicfilter/icgm/class4.cxx b/filter/source/graphicfilter/icgm/class4.cxx index 68e47d858b65..4544a3ff6b90 100644 --- a/filter/source/graphicfilter/icgm/class4.cxx +++ b/filter/source/graphicfilter/icgm/class4.cxx @@ -127,7 +127,7 @@ void CGM::ImplDoClass4() { sal_uInt32 nPoints = mnElementSize / ImplGetPointSize(); Polygon aPolygon( (sal_uInt16)nPoints ); - for ( sal_uInt16 i = 0; i < nPoints; i++) + for ( sal_uInt32 i = 0; i < nPoints; i++) { FloatPoint aFloatPoint; ImplGetPoint( aFloatPoint, true ); diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx index 63cec8d78622..8902b4c8636b 100644 --- a/filter/source/pdf/impdialog.cxx +++ b/filter/source/pdf/impdialog.cxx @@ -1630,7 +1630,7 @@ ImplErrorDialog::~ImplErrorDialog() void ImplErrorDialog::dispose() { // free strings again - for( sal_uInt16 n = 0; n < m_pErrors->GetEntryCount(); n++ ) + for( sal_Int32 n = 0; n < m_pErrors->GetEntryCount(); n++ ) delete static_cast<OUString*>(m_pErrors->GetEntryData( n )); m_pErrors.clear(); m_pExplanation.clear(); diff --git a/filter/source/svg/svgexport.cxx b/filter/source/svg/svgexport.cxx index a697793e5473..cc24f50d2d4e 100644 --- a/filter/source/svg/svgexport.cxx +++ b/filter/source/svg/svgexport.cxx @@ -1125,7 +1125,7 @@ bool SVGFilter::implGenerateMetaData() } } // text fields are used only for generating meta info so we don't need them anymore - for( sal_uInt32 i = 0; i < aFieldSet.size(); ++i ) + for( size_t i = 0; i < aFieldSet.size(); ++i ) { if( aFieldSet[i] != NULL ) { diff --git a/filter/source/svg/svgreader.cxx b/filter/source/svg/svgreader.cxx index 4c5b9b08af52..8486336aafbf 100644 --- a/filter/source/svg/svgreader.cxx +++ b/filter/source/svg/svgreader.cxx @@ -1650,7 +1650,7 @@ struct ShapeWritingVisitor boost::bind(&basegfx::B2DPolyPolygon::transform, _1,boost::cref(aState.maCTM))); - for( sal_uInt32 i=0; i<aPolys.size(); ++i ) + for( size_t i=0; i<aPolys.size(); ++i ) { const basegfx::B2DRange aBounds( aPolys[i].areControlPointsUsed() ? diff --git a/filter/source/svg/svgwriter.cxx b/filter/source/svg/svgwriter.cxx index 986411fe0ecb..66953bca518a 100644 --- a/filter/source/svg/svgwriter.cxx +++ b/filter/source/svg/svgwriter.cxx @@ -2015,7 +2015,7 @@ void SVGActionWriter::ImplWriteShape( const SVGShapeDescriptor& rShape, bool bAp const OUString aComma( "," ); OUString aDashArrayStr; - for( unsigned int k = 0; k < rShape.maDashArray.size(); ++k ) + for( size_t k = 0; k < rShape.maDashArray.size(); ++k ) { const sal_Int32 nDash = ( bApplyMapping ? ImplMap( FRound( rShape.maDashArray[ k ] ) ) : |