diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-07 19:55:45 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-07 19:55:45 +0100 |
commit | f583e8a8dccc1fb02dc7549ff364f9a8530a4f6b (patch) | |
tree | 0a7478068332f464c709fe98c20225021d95d7ca /oox/source/export | |
parent | 8de746a6a62d0ad8e20d249bd2a8c7d341159782 (diff) |
loplugin:loopvartoosmall
Change-Id: Id9ac335bcb365afdae66ec7836d6b3bfb6de8577
Diffstat (limited to 'oox/source/export')
-rw-r--r-- | oox/source/export/shapes.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/oox/source/export/shapes.cxx b/oox/source/export/shapes.cxx index 62142614676c..b8e8bdf7012a 100644 --- a/oox/source/export/shapes.cxx +++ b/oox/source/export/shapes.cxx @@ -646,7 +646,7 @@ void lcl_AnalyzeHandles( const uno::Sequence<beans::PropertyValues> & rHandles, std::vector< std::pair< sal_Int32, sal_Int32> > &rHandlePositionList, Sequence< EnhancedCustomShapeAdjustmentValue > &rSeq) { - sal_uInt16 k, j; + sal_uInt16 k; sal_uInt16 nHandles = rHandles.getLength(); for ( k = 0; k < nHandles ; k++ ) { @@ -657,9 +657,8 @@ void lcl_AnalyzeHandles( const uno::Sequence<beans::PropertyValues> & rHandles, EnhancedCustomShapeParameterPair aPosition; EnhancedCustomShapeParameterPair aPolar; const Sequence< PropertyValue >& rPropSeq = rHandles[ k ]; - for ( j = 0; j < rPropSeq.getLength(); j++ ) + for ( const PropertyValue& rPropVal: rPropSeq ) { - const PropertyValue& rPropVal = rPropSeq[ j ]; if ( rPropVal.Name.equals( sPosition ) ) { if ( rPropVal.Value >>= aPosition ) |