From 0d06d1d16775fde3b0b34f3374907e07cbba763d Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 31 Mar 2018 12:17:55 +0200 Subject: Use for-range loops in oox (part2) Change-Id: I7cbeb67a1adcdb9b0003e22b61789a882fc336c9 Reviewed-on: https://gerrit.libreoffice.org/52182 Tested-by: Jenkins Reviewed-by: Julien Nabet --- oox/source/ppt/animationspersist.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'oox/source/ppt/animationspersist.cxx') diff --git a/oox/source/ppt/animationspersist.cxx b/oox/source/ppt/animationspersist.cxx index 2c1aaa2c88c7..6841c7ff2558 100644 --- a/oox/source/ppt/animationspersist.cxx +++ b/oox/source/ppt/animationspersist.cxx @@ -186,10 +186,9 @@ namespace oox { namespace ppt { Any AnimationCondition::convertList(const SlidePersistPtr & pSlide, const AnimationConditionList & l) { Any aAny; - for( AnimationConditionList::const_iterator iter = l.begin(); - iter != l.end(); ++iter) + for (auto const& elem : l) { - aAny = addToSequence( aAny, iter->convert(pSlide) ); + aAny = addToSequence( aAny, elem.convert(pSlide) ); } return aAny; } -- cgit