summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmltexti.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-11-03 15:10:04 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-03 16:00:36 +0100
commit4284f618557992fdf12574f8fd014be76ec9fffc (patch)
treefac74828b9a4139d1f74087443c3fcc0b8a1363f /sw/source/filter/xml/xmltexti.cxx
parentf575cf3320684efe7db9844da89a5ebdb3083498 (diff)
Simplify containers iterations in sw/source/filter
Use range-based loop or replace with STL functions. Change-Id: Ifffb7ba08b3a9950ee076558ec4048b0788a38c8 Reviewed-on: https://gerrit.libreoffice.org/62806 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/xml/xmltexti.cxx')
-rw-r--r--sw/source/filter/xml/xmltexti.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/sw/source/filter/xml/xmltexti.cxx b/sw/source/filter/xml/xmltexti.cxx
index d1b1253b66e5..02851e8e6a48 100644
--- a/sw/source/filter/xml/xmltexti.cxx
+++ b/sw/source/filter/xml/xmltexti.cxx
@@ -932,16 +932,13 @@ void SwXMLTextImportHelper::endAppletOrPlugin(
const sal_Int32 nCount = rParamMap.size();
uno::Sequence< beans::PropertyValue > aCommandSequence( nCount );
- std::map < const OUString, OUString > ::iterator aIter = rParamMap.begin();
- std::map < const OUString, OUString > ::iterator aEnd = rParamMap.end();
sal_Int32 nIndex=0;
- while (aIter != aEnd )
+ for (const auto& rParam : rParamMap )
{
- aCommandSequence[nIndex].Name = (*aIter).first;
+ aCommandSequence[nIndex].Name = rParam.first;
aCommandSequence[nIndex].Handle = -1;
- aCommandSequence[nIndex].Value <<= (*aIter).second;
+ aCommandSequence[nIndex].Value <<= rParam.second;
aCommandSequence[nIndex].State = beans::PropertyState_DIRECT_VALUE;
- ++aIter;
++nIndex;
}