summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-01 09:28:58 +0200
committerNoel Grandin <noel@peralex.com>2016-09-01 11:05:21 +0200
commit18e638ef6fa55d045f874d38574f30d8152094e4 (patch)
treef404969edb64fd77ce21eed8e7f07013b188a49a /sd
parent649bae7fb2c6ecd7dcbbfd7f0d0ba37f598ac2f5 (diff)
std::list<sal_Int16> to deque
Change-Id: I5e841fd7a9de74bba359c7e39d23d9a9b3fbc1f2
Diffstat (limited to 'sd')
-rw-r--r--sd/source/core/CustomAnimationEffect.cxx9
1 files changed, 4 insertions, 5 deletions
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 <basegfx/matrix/b2dhommatrixtools.hxx>
#include <algorithm>
+#include <deque>
#include <cppuhelper/implbase.hxx>
@@ -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 )