summaryrefslogtreecommitdiff
path: root/xmloff/source/draw/animationimport.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-11-15 21:06:36 +0100
committerJulien Nabet <serval2412@yahoo.fr>2017-11-16 23:01:18 +0100
commit05fc30e38899348fb58548adb7a72e4fa2874d62 (patch)
tree5ce45fea9ead6084456a7db2c56f4cb9705179b0 /xmloff/source/draw/animationimport.cxx
parent3e1b9212ad4f8d82b6110a525811482a99f6e112 (diff)
Replace some lists by vectors (xmloff)
Change-Id: Ide0270ae0b6a17d7c48c0a9ff7901145e00dca6b Reviewed-on: https://gerrit.libreoffice.org/44792 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'xmloff/source/draw/animationimport.cxx')
-rw-r--r--xmloff/source/draw/animationimport.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/xmloff/source/draw/animationimport.cxx b/xmloff/source/draw/animationimport.cxx
index 6820c7ba8694..8134fd671499 100644
--- a/xmloff/source/draw/animationimport.cxx
+++ b/xmloff/source/draw/animationimport.cxx
@@ -51,7 +51,7 @@
#include <sax/tools/converter.hxx>
-#include <list>
+#include <vector>
#include <o3tl/make_unique.hxx>
@@ -741,7 +741,7 @@ void AnimationNodeContext::init_node( const css::uno::Reference< css::xml::sax:
Reference< XTransitionFilter > xTransitionFilter( mxNode, UNO_QUERY );
Reference< XIterateContainer > xIter( mxNode, UNO_QUERY );
- std::list< NamedValue > aUserData;
+ std::vector< NamedValue > aUserData;
XMLTokenEnum meAttributeName = XML_TOKEN_INVALID;
OUString aFrom, aBy, aTo, aValues;
bool bHaveXmlId( false );
@@ -1201,10 +1201,8 @@ void AnimationNodeContext::init_node( const css::uno::Reference< css::xml::sax:
{
Sequence< NamedValue > aUnoUserData( nUserDataCount );
NamedValue* pData = aUnoUserData.getArray();
- std::list< NamedValue >::iterator aIter( aUserData.begin() );
- const std::list< NamedValue >::iterator aEnd( aUserData.end() );
- while( aIter != aEnd )
- *pData++ = (*aIter++);
+ for (auto const& item : aUserData)
+ *pData++ = item;
mxNode->setUserData( aUnoUserData );
}