From 18e638ef6fa55d045f874d38574f30d8152094e4 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 1 Sep 2016 09:28:58 +0200 Subject: std::list to deque Change-Id: I5e841fd7a9de74bba359c7e39d23d9a9b3fbc1f2 --- sd/source/core/CustomAnimationEffect.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sd') diff --git a/sd/source/core/CustomAnimationEffect.cxx b/sd/source/core/CustomAnimationEffect.cxx index 0f8545c5d5b0..da8d1bd5ae75 100644 --- a/sd/source/core/CustomAnimationEffect.cxx +++ b/sd/source/core/CustomAnimationEffect.cxx @@ -64,6 +64,7 @@ #include #include +#include #include @@ -2462,7 +2463,7 @@ void EffectSequenceHelper::createTextGroupParagraphEffects( const CustomAnimatio Reference< XEnumerationAccess > xText( xTarget, UNO_QUERY_THROW ); Reference< XEnumeration > xEnumeration( xText->createEnumeration(), UNO_QUERY_THROW ); - std::list< sal_Int16 > aParaList; + std::deque< sal_Int16 > aParaList; sal_Int16 nPara; // fill the list with all valid paragraphs @@ -2481,11 +2482,9 @@ void EffectSequenceHelper::createTextGroupParagraphEffects( const CustomAnimatio ParagraphTarget aTarget; aTarget.Shape = xTarget; - std::list< sal_Int16 >::iterator aIter( aParaList.begin() ); - std::list< sal_Int16 >::iterator aEnd( aParaList.end() ); - while( aIter != aEnd ) + for( const auto i : aParaList ) { - aTarget.Paragraph = (*aIter++); + aTarget.Paragraph = i; CustomAnimationEffectPtr pNewEffect; if( bUsed ) -- cgit