diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-03-30 16:20:06 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-03-30 16:28:55 +0100 |
commit | 9cc04cb09590cd00395244f81bbf6c3292b99c2b (patch) | |
tree | 80a0a2e9dab80eeab127b52aea4410ada1ec68b2 /oox/source | |
parent | c34a5ec1a60510871bf62ab380536d82078bb53d (diff) |
Prefer prefix ++/-- operators for non-primitive types
+ convert while loop in for loop
Change-Id: I615e2c724481047b557a4da9bb0753ec6eaecb90
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/drawingml/customshapeproperties.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/oox/source/drawingml/customshapeproperties.cxx b/oox/source/drawingml/customshapeproperties.cxx index 48173b7c7ffb..aab5cc471f6c 100644 --- a/oox/source/drawingml/customshapeproperties.cxx +++ b/oox/source/drawingml/customshapeproperties.cxx @@ -169,8 +169,8 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi uno::Sequence< com::sun::star::drawing::EnhancedCustomShapeAdjustmentValue > aAdjustmentSeq; if ( aGeoPropSeq[ i ].Value >>= aAdjustmentSeq ) { - std::vector< CustomShapeGuide >::const_iterator aIter( maAdjustmentGuideList.begin() ); - while( aIter != maAdjustmentGuideList.end() ) + for (std::vector< CustomShapeGuide >::const_iterator aIter( maAdjustmentGuideList.begin() ), aEnd(maAdjustmentGuideList.end()); + aIter != aEnd; ++aIter) { if ( (*aIter).maName.getLength() > 3 ) { @@ -190,7 +190,6 @@ void CustomShapeProperties::pushToPropSet( const ::oox::core::FilterBase& /* rFi aAdjustmentVal.Name = (*aIter).maName; aAdjustmentSeq[ 0 ] = aAdjustmentVal; } - aIter++; } aGeoPropSeq[ i ].Value <<= aAdjustmentSeq; xPropSet->setPropertyValue( sCustomShapeGeometry, Any( aGeoPropSeq ) ); |