diff options
Diffstat (limited to 'sd/source/filter/xml/sdtransform.cxx')
-rw-r--r-- | sd/source/filter/xml/sdtransform.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sd/source/filter/xml/sdtransform.cxx b/sd/source/filter/xml/sdtransform.cxx index 2b4db59efa5d..7dd6c82e4761 100644 --- a/sd/source/filter/xml/sdtransform.cxx +++ b/sd/source/filter/xml/sdtransform.cxx @@ -154,13 +154,8 @@ void SdTransformOOo2xDocument::transformStyle( SfxStyleSheetBase& rSheet ) void SdTransformOOo2xDocument::transformShapes( SdrObjList const & rShapes ) { - const size_t nShapeCount = rShapes.GetObjCount(); - for( size_t nShape = 0; nShape < nShapeCount; ++nShape ) - { - SdrObject* pObj = rShapes.GetObj( nShape ); - if( pObj ) - transformShape( *pObj ); - } + for (const rtl::Reference<SdrObject>& pObj : rShapes) + transformShape( *pObj ); } void SdTransformOOo2xDocument::transformShape( SdrObject& rObj ) |