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/vml/vmlinputstream.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'oox/source/vml/vmlinputstream.cxx') diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx index 3afcbaa8f32c..4545b6924a41 100644 --- a/oox/source/vml/vmlinputstream.cxx +++ b/oox/source/vml/vmlinputstream.cxx @@ -138,8 +138,8 @@ void lclProcessAttribs( OStringBuffer& rBuffer, const sal_Char* pcBeg, const sal // if no error has occurred, build the resulting attribute list if( bOk ) - for( AttributeDataMap::iterator aIt = aAttributes.begin(), aEnd = aAttributes.end(); aIt != aEnd; ++aIt ) - rBuffer.append( ' ' ).append( aIt->second ); + for (auto const& attrib : aAttributes) + rBuffer.append( ' ' ).append( attrib.second ); // on error, just append the complete passed string else lclAppendToBuffer( rBuffer, pcBeg, pcEnd ); -- cgit