diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-20 20:03:15 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-22 18:42:35 +0200 |
commit | 6ffdc88e79904882e319bdd0b901e7491abae0b3 (patch) | |
tree | 5cb0257a03987f962668655af536a05ad72f8882 /slideshow/source/engine/activities | |
parent | 803a6ccb774ff6dc67ca697459d6679e4bc9604f (diff) |
Simplify Sequence iterations in shell..svgio
Use range-based loops, STL and comphelper functions
Change-Id: I612d36abcc09a91c60f7212de6747a1a1bdcfc69
Reviewed-on: https://gerrit.libreoffice.org/76056
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'slideshow/source/engine/activities')
-rw-r--r-- | slideshow/source/engine/activities/activitiesfactory.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slideshow/source/engine/activities/activitiesfactory.cxx b/slideshow/source/engine/activities/activitiesfactory.cxx index ba75b46eb5a1..e2cc9987e998 100644 --- a/slideshow/source/engine/activities/activitiesfactory.cxx +++ b/slideshow/source/engine/activities/activitiesfactory.cxx @@ -621,11 +621,11 @@ AnimationActivitySharedPtr createValueListActivity( ValueVectorType aValueVector; aValueVector.reserve( rValues.getLength() ); - for( ::std::size_t i=0, nLen=rValues.getLength(); i<nLen; ++i ) + for( const auto& rValue : rValues ) { ValueType aValue; ENSURE_OR_THROW( - extractValue( aValue, rValues[i], rShape, rSlideBounds ), + extractValue( aValue, rValue, rShape, rSlideBounds ), "createValueListActivity(): Could not extract values" ); aValueVector.push_back( aValue ); } |