summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-05-28 16:18:34 +0200
committerNoel Grandin <noel@peralex.com>2015-05-29 08:48:41 +0200
commite0b2e6e3f767240016133dd2d55e0bfb9192ca39 (patch)
tree16373b19bd514dfad5fa4f3eea128ed801e5b726 /oox
parent6140ca9f1d728475e332f9fa96ee62dda58687ea (diff)
loplugin:loopvartoosmall
Change-Id: Icbe68b31d4ab04ca3cd9f572e3598413946a75c7
Diffstat (limited to 'oox')
-rw-r--r--oox/source/crypto/Standard2007Engine.cxx2
-rw-r--r--oox/source/drawingml/diagram/diagramlayoutatoms.cxx4
-rw-r--r--oox/source/drawingml/shape.cxx2
-rw-r--r--oox/source/vml/vmlshape.cxx4
4 files changed, 6 insertions, 6 deletions
diff --git a/oox/source/crypto/Standard2007Engine.cxx b/oox/source/crypto/Standard2007Engine.cxx
index bcaba3052aeb..09035d7409f8 100644
--- a/oox/source/crypto/Standard2007Engine.cxx
+++ b/oox/source/crypto/Standard2007Engine.cxx
@@ -138,7 +138,7 @@ bool Standard2007Engine::calculateEncryptionKey(const OUString& rPassword)
// derive key
vector<sal_uInt8> buffer(64, 0x36);
- for( sal_uInt32 i = 0; i < hash.size(); ++i )
+ for( size_t i = 0; i < hash.size(); ++i )
buffer[i] ^= hash[i];
Digest::sha1(hash, buffer);
diff --git a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
index 8edffb9dd2aa..034a76a1e896 100644
--- a/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
+++ b/oox/source/drawingml/diagram/diagramlayoutatoms.cxx
@@ -339,12 +339,12 @@ void AlgAtom::layoutShape( const ShapePtr& rShape,
const sal_Int32 nHackyFontHeight=50;
const sal_Int32 nHackyFontWidth=20;
awt::Size aTotalSize;
- for( sal_uInt32 nPara=0; nPara<pTextBody->getParagraphs().size(); ++nPara )
+ for( size_t nPara=0; nPara<pTextBody->getParagraphs().size(); ++nPara )
{
aTotalSize.Height += nHackyFontHeight;
sal_Int32 nLocalWidth=0;
- for( sal_uInt32 nRun=0; nRun<pTextBody->getParagraphs().at(nPara)->getRuns().size(); ++nRun )
+ for( size_t nRun=0; nRun<pTextBody->getParagraphs().at(nPara)->getRuns().size(); ++nRun )
nLocalWidth +=
pTextBody->getParagraphs().at(nPara)->getRuns().at(nRun)->getText().getLength()
* nHackyFontWidth;
diff --git a/oox/source/drawingml/shape.cxx b/oox/source/drawingml/shape.cxx
index 1f10a7460a46..f4e2e41cb730 100644
--- a/oox/source/drawingml/shape.cxx
+++ b/oox/source/drawingml/shape.cxx
@@ -915,7 +915,7 @@ Reference< XShape > Shape::createAndInsert(
{
Sequence< PropertyValue > aGradientStops( aFillProperties.maGradientProps.maGradientStops.size() );
::std::map< double, Color >::iterator aIt = aFillProperties.maGradientProps.maGradientStops.begin();
- for( sal_uInt32 i = 0; i < aFillProperties.maGradientProps.maGradientStops.size(); ++i )
+ for( size_t i = 0; i < aFillProperties.maGradientProps.maGradientStops.size(); ++i )
{ // for each stop in the gradient definition:
// save position
diff --git a/oox/source/vml/vmlshape.cxx b/oox/source/vml/vmlshape.cxx
index 6342140dc49a..55b17d99a741 100644
--- a/oox/source/vml/vmlshape.cxx
+++ b/oox/source/vml/vmlshape.cxx
@@ -939,11 +939,11 @@ Reference< XShape > BezierShape::implConvertAndInsert( const Reference< XShapes
}
aBezierCoords.Coordinates.realloc( aCoordLists.size() );
- for ( unsigned int i = 0; i < aCoordLists.size(); i++ )
+ for ( size_t i = 0; i < aCoordLists.size(); i++ )
aBezierCoords.Coordinates[i] = ContainerHelper::vectorToSequence( aCoordLists[i] );
aBezierCoords.Flags.realloc( aFlagLists.size() );
- for ( unsigned int i = 0; i < aFlagLists.size(); i++ )
+ for ( size_t i = 0; i < aFlagLists.size(); i++ )
aBezierCoords.Flags[i] = ContainerHelper::vectorToSequence( aFlagLists[i] );
if( !aCoordLists.front().empty() && !aCoordLists.back().empty()