summaryrefslogtreecommitdiff
path: root/drawinglayer
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-28 14:29:05 +0200
committerNoel Grandin <noel@peralex.com>2015-05-29 08:48:41 +0200
commitafcf1ecee1af1312551583b9fc860c1881ba2134 (patch)
tree5b932308905d86f01f9f73aec0ae0d95836079c3 /drawinglayer
parentabb774722230ce2b55f2e1f1528fcd0514ba83e1 (diff)
loplugin:loopvartoosmall
Change-Id: I1e9768c08af0bc7caac6a39c13842ee9d8ad962c
Diffstat (limited to 'drawinglayer')
-rw-r--r--drawinglayer/source/animation/animationtiming.cxx8
-rw-r--r--drawinglayer/source/primitive2d/fillgradientprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/helplineprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/metafileprimitive2d.cxx8
-rw-r--r--drawinglayer/source/primitive2d/patternfillprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive2d/textprimitive2d.cxx2
-rw-r--r--drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx2
-rw-r--r--drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx4
-rw-r--r--drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx10
-rw-r--r--drawinglayer/source/primitive3d/sdrprimitive3d.cxx2
-rw-r--r--drawinglayer/source/processor3d/shadow3dextractor.cxx2
14 files changed, 25 insertions, 25 deletions
diff --git a/drawinglayer/source/animation/animationtiming.cxx b/drawinglayer/source/animation/animationtiming.cxx
index be4d23b5021a..2e5f6040df07 100644
--- a/drawinglayer/source/animation/animationtiming.cxx
+++ b/drawinglayer/source/animation/animationtiming.cxx
@@ -182,7 +182,7 @@ namespace drawinglayer
AnimationEntryList::~AnimationEntryList()
{
- for(sal_uInt32 a(0L); a < maEntries.size(); a++)
+ for(size_t a(0); a < maEntries.size(); a++)
{
delete maEntries[a];
}
@@ -192,7 +192,7 @@ namespace drawinglayer
{
AnimationEntryList* pNew = new AnimationEntryList();
- for(sal_uInt32 a(0L); a < maEntries.size(); a++)
+ for(size_t a(0); a < maEntries.size(); a++)
{
pNew->append(*maEntries[a]);
}
@@ -206,7 +206,7 @@ namespace drawinglayer
if(pCompare && mfDuration == pCompare->mfDuration)
{
- for(sal_uInt32 a(0L); a < maEntries.size(); a++)
+ for(size_t a(0); a < maEntries.size(); a++)
{
if(!(*maEntries[a] == *pCompare->maEntries[a]))
{
@@ -286,7 +286,7 @@ namespace drawinglayer
{
AnimationEntryLoop* pNew = new AnimationEntryLoop(mnRepeat);
- for(sal_uInt32 a(0L); a < maEntries.size(); a++)
+ for(size_t a(0); a < maEntries.size(); a++)
{
pNew->append(*maEntries[a]);
}
diff --git a/drawinglayer/source/primitive2d/fillgradientprimitive2d.cxx b/drawinglayer/source/primitive2d/fillgradientprimitive2d.cxx
index 8f7fb120d3a9..744d007cf269 100644
--- a/drawinglayer/source/primitive2d/fillgradientprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/fillgradientprimitive2d.cxx
@@ -166,7 +166,7 @@ namespace drawinglayer
rOuterColor));
// create solid fill steps
- for(sal_uInt32 a(0); a < rEntries.size(); a++)
+ for(size_t a(0); a < rEntries.size(); a++)
{
// create part polygon
basegfx::B2DPolygon aNewPoly(rUnitPolygon);
diff --git a/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx b/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx
index e174322cc8ee..0bb39f53494e 100644
--- a/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/fillgraphicprimitive2d.cxx
@@ -73,7 +73,7 @@ namespace drawinglayer
rGraphic,
basegfx::B2DHomMatrix());
- for(sal_uInt32 a(0); a < aMatrices.size(); a++)
+ for(size_t a(0); a < aMatrices.size(); a++)
{
aRetval[a] = new TransformPrimitive2D(
getTransformation() * aMatrices[a],
diff --git a/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx b/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx
index 758a707516a6..886c1b26327f 100644
--- a/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/fillhatchprimitive2d.cxx
@@ -122,7 +122,7 @@ namespace drawinglayer
const basegfx::B2DPoint aStart(0.0, 0.0);
const basegfx::B2DPoint aEnd(1.0, 0.0);
- for(sal_uInt32 a(0L); a < aMatrices.size(); a++)
+ for(size_t a(0); a < aMatrices.size(); a++)
{
const basegfx::B2DHomMatrix& rMatrix = aMatrices[a];
basegfx::B2DPolygon aNewLine;
diff --git a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
index 7ed0045f778a..843ba43ba1c8 100644
--- a/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
+++ b/drawinglayer/source/primitive2d/graphicprimitivehelper2d.cxx
@@ -107,7 +107,7 @@ namespace
aVirtualDevice->Erase();
aVirtualDeviceMask->Erase();
- for(sal_uInt16 a(0L); a < maAnimation.Count(); a++)
+ for(size_t a(0); a < maAnimation.Count(); a++)
{
animationStep aNextStep;
aNextStep.mnTime = generateStepTime(a);
diff --git a/drawinglayer/source/primitive2d/helplineprimitive2d.cxx b/drawinglayer/source/primitive2d/helplineprimitive2d.cxx
index 59397a6a6b0f..3962f65c0f8b 100644
--- a/drawinglayer/source/primitive2d/helplineprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/helplineprimitive2d.cxx
@@ -132,7 +132,7 @@ namespace drawinglayer
// prepare return value
Primitive2DSequence aRetval(aTempPrimitiveTarget.size());
- for(sal_uInt32 a(0L); a < aTempPrimitiveTarget.size(); a++)
+ for(size_t a(0); a < aTempPrimitiveTarget.size(); a++)
{
const Primitive2DReference xRef(aTempPrimitiveTarget[a]);
aRetval[a] = xRef;
diff --git a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
index e718176c2cd5..9762a5bb5428 100644
--- a/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/metafileprimitive2d.cxx
@@ -612,7 +612,7 @@ namespace
{
std::vector< basegfx::B2DPoint > aPositions(rPositions);
- for(sal_uInt32 a(0); a < aPositions.size(); a++)
+ for(size_t a(0); a < aPositions.size(); a++)
{
aPositions[a] = rProperties.getTransformation() * aPositions[a];
}
@@ -1567,7 +1567,7 @@ namespace
// add created text primitive to target
if(rProperty.getTransformation().isIdentity())
{
- for(sal_uInt32 a(0); a < aTargetVector.size(); a++)
+ for(size_t a(0); a < aTargetVector.size(); a++)
{
rTarget.append(aTargetVector[a]);
}
@@ -1577,7 +1577,7 @@ namespace
// when a transformation is set, embed to it
drawinglayer::primitive2d::Primitive2DSequence xTargets(aTargetVector.size());
- for(sal_uInt32 a(0); a < aTargetVector.size(); a++)
+ for(size_t a(0); a < aTargetVector.size(); a++)
{
xTargets[a] = drawinglayer::primitive2d::Primitive2DReference(aTargetVector[a]);
}
@@ -2065,7 +2065,7 @@ namespace
{
// when derivation is more than 3,5% from default text size,
// scale the DXArray
- for(sal_uInt32 a(0); a < aTextArray.size(); a++)
+ for(size_t a(0); a < aTextArray.size(); a++)
{
aTextArray[a] *= fRelative;
}
diff --git a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx
index 6476c6de8054..2e4357e76c4e 100644
--- a/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/patternfillprimitive2d.cxx
@@ -73,7 +73,7 @@ namespace drawinglayer
aRetval.realloc(aMatrices.size());
// create one primitive for each matrix
- for(sal_uInt32 a(0); a < aMatrices.size(); a++)
+ for(size_t a(0); a < aMatrices.size(); a++)
{
aRetval[a] = new TransformPrimitive2D(
aMatrices[a],
diff --git a/drawinglayer/source/primitive2d/textprimitive2d.cxx b/drawinglayer/source/primitive2d/textprimitive2d.cxx
index 1554a685859d..7751aba3c37a 100644
--- a/drawinglayer/source/primitive2d/textprimitive2d.cxx
+++ b/drawinglayer/source/primitive2d/textprimitive2d.cxx
@@ -130,7 +130,7 @@ namespace drawinglayer
::std::vector< double > aScaledDXArray = getDXArray();
const double fDXArrayScale(1.0 / aScale.getX());
- for(sal_uInt32 a(0); a < aScaledDXArray.size(); a++)
+ for(size_t a(0); a < aScaledDXArray.size(); a++)
{
aScaledDXArray[a] *= fDXArrayScale;
}
diff --git a/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx b/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx
index 204932f78126..c191db51b19f 100644
--- a/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/hatchtextureprimitive3d.cxx
@@ -183,7 +183,7 @@ namespace drawinglayer
a2DUnitLine.append(basegfx::B2DPoint(0.0, 0.0));
a2DUnitLine.append(basegfx::B2DPoint(1.0, 0.0));
- for(sal_uInt32 c(0); c < aMatrices.size(); c++)
+ for(size_t c(0); c < aMatrices.size(); c++)
{
const basegfx::B2DHomMatrix& rMatrix = aMatrices[c];
basegfx::B2DPolygon aNewLine(a2DUnitLine);
diff --git a/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx b/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
index 578026ba055c..4bcf43602d23 100644
--- a/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/polygontubeprimitive3d.cxx
@@ -498,7 +498,7 @@ namespace drawinglayer
Primitive3DSequence aRetval(aResultVector.size());
- for(sal_uInt32 a(0L); a < aResultVector.size(); a++)
+ for(size_t a(0); a < aResultVector.size(); a++)
{
aRetval[a] = Primitive3DReference(aResultVector[a]);
}
@@ -732,7 +732,7 @@ namespace drawinglayer
// prepare return value
Primitive3DSequence aRetval(aResultVector.size());
- for(sal_uInt32 a(0L); a < aResultVector.size(); a++)
+ for(size_t a(0); a < aResultVector.size(); a++)
{
aRetval[a] = Primitive3DReference(aResultVector[a]);
}
diff --git a/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx b/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx
index 700d038a23a2..9a92be08e88b 100644
--- a/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrdecompositiontools3d.cxx
@@ -50,7 +50,7 @@ namespace drawinglayer
{
basegfx::B3DRange aRetval;
- for(sal_uInt32 a(0); a < rFill.size(); a++)
+ for(size_t a(0); a < rFill.size(); a++)
{
aRetval.expand(basegfx::tools::getRange(rFill[a]));
}
@@ -63,7 +63,7 @@ namespace drawinglayer
// create sphere normals
const basegfx::B3DPoint aCenter(rRange.getCenter());
- for(sal_uInt32 a(0); a < rFill.size(); a++)
+ for(size_t a(0); a < rFill.size(); a++)
{
rFill[a] = basegfx::tools::applyDefaultNormalsSphere(rFill[a], aCenter);
}
@@ -71,7 +71,7 @@ namespace drawinglayer
void applyNormalsKindFlatTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill)
{
- for(sal_uInt32 a(0); a < rFill.size(); a++)
+ for(size_t a(0); a < rFill.size(); a++)
{
rFill[a].clearNormals();
}
@@ -80,7 +80,7 @@ namespace drawinglayer
void applyNormalsInvertTo3DGeometry(::std::vector< basegfx::B3DPolyPolygon >& rFill)
{
// invert normals
- for(sal_uInt32 a(0); a < rFill.size(); a++)
+ for(size_t a(0); a < rFill.size(); a++)
{
rFill[a] = basegfx::tools::invertNormals(rFill[a]);
}
@@ -180,7 +180,7 @@ namespace drawinglayer
// create list of simple fill primitives
aRetval.realloc(r3DPolyPolygonVector.size());
- for(sal_uInt32 a(0L); a < r3DPolyPolygonVector.size(); a++)
+ for(size_t a(0); a < r3DPolyPolygonVector.size(); a++)
{
// get scaled PolyPolygon
basegfx::B3DPolyPolygon aScaledPolyPolygon(r3DPolyPolygonVector[a]);
diff --git a/drawinglayer/source/primitive3d/sdrprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrprimitive3d.cxx
index c68f84e44c0d..0a58349118d0 100644
--- a/drawinglayer/source/primitive3d/sdrprimitive3d.cxx
+++ b/drawinglayer/source/primitive3d/sdrprimitive3d.cxx
@@ -57,7 +57,7 @@ namespace drawinglayer
if(!rSlices.empty())
{
- for(sal_uInt32 a(0L); a < rSlices.size(); a++)
+ for(size_t a(0); a < rSlices.size(); a++)
{
aRetval.expand(basegfx::tools::getRange(rSlices[a].getB3DPolyPolygon()));
}
diff --git a/drawinglayer/source/processor3d/shadow3dextractor.cxx b/drawinglayer/source/processor3d/shadow3dextractor.cxx
index d025a27d2167..7598fe44bc53 100644
--- a/drawinglayer/source/processor3d/shadow3dextractor.cxx
+++ b/drawinglayer/source/processor3d/shadow3dextractor.cxx
@@ -253,7 +253,7 @@ namespace drawinglayer
{
OSL_ENSURE(0 == maPrimitive2DSequence.size(),
"OOps, someone used Shadow3DExtractingProcessor, but did not fetch the results (!)");
- for(sal_uInt32 a(0); a < maPrimitive2DSequence.size(); a++)
+ for(size_t a(0); a < maPrimitive2DSequence.size(); a++)
{
delete maPrimitive2DSequence[a];
}