summaryrefslogtreecommitdiff
path: root/xmloff/source/meta
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-09-16 13:53:43 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-17 08:12:03 +0200
commit30530afaaa715473a2f9c3f068beeed5f3a98daf (patch)
tree5d5b499a75c4b363eec63e11b822de0da3cd5f60 /xmloff/source/meta
parentffe2b51a4919fb64a8debecb724d1e959abf343a (diff)
Simplify containers iterations in xmloff/source/[f-t]*
Use range-based loop or replace with STL functions. Change-Id: Ic94c7e292f44d460038d3ca99c7e4cc02958d8a3 Reviewed-on: https://gerrit.libreoffice.org/60549 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/meta')
-rw-r--r--xmloff/source/meta/xmlmetae.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmloff/source/meta/xmlmetae.cxx b/xmloff/source/meta/xmlmetae.cxx
index c6d32a8b0229..81dbff185087 100644
--- a/xmloff/source/meta/xmlmetae.cxx
+++ b/xmloff/source/meta/xmlmetae.cxx
@@ -394,9 +394,8 @@ SvXMLMetaExport::startElement(const OUString & i_rName,
if (m_level == 1) {
// attach preserved namespace decls from root node here
- for (std::vector<beans::StringPair>::const_iterator iter =
- m_preservedNSs.begin(); iter != m_preservedNSs.end(); ++iter) {
- const OUString ns(iter->First);
+ for (const auto& rPreservedNS : m_preservedNSs) {
+ const OUString ns(rPreservedNS.First);
bool found(false);
// but only if it is not already there
const sal_Int16 nCount = i_xAttribs->getLength();
@@ -408,7 +407,7 @@ SvXMLMetaExport::startElement(const OUString & i_rName,
}
}
if (!found) {
- mrExport.AddAttribute(ns, iter->Second);
+ mrExport.AddAttribute(ns, rPreservedNS.Second);
}
}
}