diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2017-10-17 22:10:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-10-18 08:40:48 +0200 |
commit | 695c15ed6e8c4d0236970798f463c7488a903a38 (patch) | |
tree | 60038582f7a83e6ec99676d0e8c7a38164ed2040 /oox/source/ppt/commonbehaviorcontext.cxx | |
parent | 48a67502e657761b3c5f70adf732f4763fb8035a (diff) |
Replace lists by vectors in oox
Change-Id: I951466552fd1cdb3b8f1cbfc07e64f5e0424552e
Reviewed-on: https://gerrit.libreoffice.org/43469
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/ppt/commonbehaviorcontext.cxx')
-rw-r--r-- | oox/source/ppt/commonbehaviorcontext.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/oox/source/ppt/commonbehaviorcontext.cxx b/oox/source/ppt/commonbehaviorcontext.cxx index 4c30b5ece3d8..bf403d7e9e0b 100644 --- a/oox/source/ppt/commonbehaviorcontext.cxx +++ b/oox/source/ppt/commonbehaviorcontext.cxx @@ -60,14 +60,13 @@ namespace oox { namespace ppt { if( !maAttributes.empty() ) { OUStringBuffer sAttributes; - std::list< Attribute >::const_iterator iter; - for(iter = maAttributes.begin(); iter != maAttributes.end(); ++iter) + for (auto const& attribute : maAttributes) { if( !sAttributes.isEmpty() ) { sAttributes.append( ";" ); } - sAttributes.append( iter->name ); + sAttributes.append( attribute.name ); } OUString sTmp( sAttributes.makeStringAndClear() ); mpNode->getNodeProperties()[ NP_ATTRIBUTENAME ] <<= sTmp; |