diff options
author | Noel Grandin <noel@peralex.com> | 2015-05-28 15:44:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-05-29 08:48:41 +0200 |
commit | 6140ca9f1d728475e332f9fa96ee62dda58687ea (patch) | |
tree | 284733762d73048939675ca39a8932a3ca2009f5 /svx | |
parent | afcf1ecee1af1312551583b9fc860c1881ba2134 (diff) |
loplugin:loopvartoosmall
Change-Id: Icb31e51575f7fffd36be73bbd87a3c5e56c3aa26
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/engine3d/helperhittest3d.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/clonelist.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svddrgmt.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdedtv.cxx | 2 | ||||
-rw-r--r-- | svx/source/svdraw/svdfmtf.cxx | 8 | ||||
-rw-r--r-- | svx/source/svdraw/svdoashp.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/svx/source/engine3d/helperhittest3d.cxx b/svx/source/engine3d/helperhittest3d.cxx index 809717255bb7..51a0d76bf68e 100644 --- a/svx/source/engine3d/helperhittest3d.cxx +++ b/svx/source/engine3d/helperhittest3d.cxx @@ -205,7 +205,7 @@ void getAllHit3DObjectsSortedFrontToBack( ::std::vector< basegfx::B3DPoint > aHitsWithObject; getAllHit3DObjectWithRelativePoint(aFront, aBack, *pCandidate, aViewInfo3D, aHitsWithObject, false); - for(sal_uInt32 a(0); a < aHitsWithObject.size(); a++) + for(size_t a(0); a < aHitsWithObject.size(); a++) { const basegfx::B3DPoint aPointInViewCoordinates(aViewInfo3D.getObjectToView() * aHitsWithObject[a]); aDepthAndObjectResults.push_back(ImplPairDephAndObject(pCandidate, aPointInViewCoordinates.getZ())); diff --git a/svx/source/svdraw/clonelist.cxx b/svx/source/svdraw/clonelist.cxx index 5eb9fba929be..f26e3a7a4467 100644 --- a/svx/source/svdraw/clonelist.cxx +++ b/svx/source/svdraw/clonelist.cxx @@ -71,7 +71,7 @@ void CloneList::CopyConnections() const { sal_uInt32 cloneCount = maCloneList.size(); - for(sal_uInt32 a = 0; a < maOriginalList.size(); a++) + for(size_t a = 0; a < maOriginalList.size(); a++) { const SdrEdgeObj* pOriginalEdge = PTR_CAST(SdrEdgeObj, GetOriginal(a)); SdrEdgeObj* pCloneEdge = PTR_CAST(SdrEdgeObj, GetClone(a)); diff --git a/svx/source/svdraw/svddrgmt.cxx b/svx/source/svdraw/svddrgmt.cxx index fd0077da5dd0..e50cadf399d1 100644 --- a/svx/source/svdraw/svddrgmt.cxx +++ b/svx/source/svdraw/svddrgmt.cxx @@ -317,7 +317,7 @@ basegfx::B2DRange SdrDragMethod::getCurrentRange() const void SdrDragMethod::clearSdrDragEntries() { - for(sal_uInt32 a(0); a < maSdrDragEntries.size(); a++) + for(size_t a(0); a < maSdrDragEntries.size(); a++) { delete maSdrDragEntries[a]; } diff --git a/svx/source/svdraw/svdedtv.cxx b/svx/source/svdraw/svdedtv.cxx index c9a567a2914c..fd3361cb77f2 100644 --- a/svx/source/svdraw/svdedtv.cxx +++ b/svx/source/svdraw/svdedtv.cxx @@ -309,7 +309,7 @@ void SdrEditView::ImpBroadcastEdgesOfMarkedNodes() // New mechanism to search for necessary disconnections for // changed connectors inside the transitive hull of all at // the beginning of UNDO selected objects - for(sal_uInt32 a(0L); a < rAllMarkedObjects.size(); a++) + for(size_t a(0); a < rAllMarkedObjects.size(); a++) { SdrEdgeObj* pEdge = PTR_CAST(SdrEdgeObj, rAllMarkedObjects[a]); diff --git a/svx/source/svdraw/svdfmtf.cxx b/svx/source/svdraw/svdfmtf.cxx index 002559e9cc11..1c12fc47f778 100644 --- a/svx/source/svdraw/svdfmtf.cxx +++ b/svx/source/svdraw/svdfmtf.cxx @@ -1612,9 +1612,9 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaFloatTransparentAction& rAct) { const double fOpNew(1.0 - fTransparence); - for(int y(0); y < pOld->Height(); y++) + for(long y(0); y < pOld->Height(); y++) { - for(int x(0); x < pOld->Width(); x++) + for(long x(0); x < pOld->Width(); x++) { const double fOpOld(1.0 - (pOld->GetPixel(y, x).GetIndex() * fFactor)); const sal_uInt8 aCol(basegfx::fround((1.0 - (fOpOld * fOpNew)) * 255.0)); @@ -1631,9 +1631,9 @@ void ImpSdrGDIMetaFileImport::DoAction(MetaFloatTransparentAction& rAct) { if(pOld->Width() == pNew->Width() && pOld->Height() == pNew->Height()) { - for(int y(0); y < pOld->Height(); y++) + for(long y(0); y < pOld->Height(); y++) { - for(int x(0); x < pOld->Width(); x++) + for(long x(0); x < pOld->Width(); x++) { const double fOpOld(1.0 - (pOld->GetPixel(y, x).GetIndex() * fFactor)); const double fOpNew(1.0 - (pNew->GetPixel(y, x).GetIndex() * fFactor)); diff --git a/svx/source/svdraw/svdoashp.cxx b/svx/source/svdraw/svdoashp.cxx index 3aa99efe1198..190ba765e5ab 100644 --- a/svx/source/svdraw/svdoashp.cxx +++ b/svx/source/svdraw/svdoashp.cxx @@ -359,9 +359,9 @@ SdrObject* ImpCreateShadowObjectClone(const SdrObject& rOriginal, const SfxItemS if(pWriteAccess) { - for(sal_Int32 y(0L); y < pReadAccess->Height(); y++) + for(long y(0L); y < pReadAccess->Height(); y++) { - for(sal_Int32 x(0L); x < pReadAccess->Width(); x++) + for(long x(0L); x < pReadAccess->Width(); x++) { sal_uInt16 nLuminance((sal_uInt16)pReadAccess->GetLuminance(y, x) + 1); const BitmapColor aDestColor( diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index b6d382745d57..20adb07fa9b2 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -2446,7 +2446,7 @@ SdrObject* SdrObject::ImpConvertToContourObj(SdrObject* pRet, bool bForceLineDas if(!aExtractedHairlines.empty()) { // for SdrObject creation, just copy all to a single Hairline-PolyPolygon - for(sal_uInt32 a(0); a < aExtractedHairlines.size(); a++) + for(size_t a(0); a < aExtractedHairlines.size(); a++) { aMergedHairlinePolyPolygon.append(aExtractedHairlines[a]); } |