summaryrefslogtreecommitdiff
path: root/sw/source/filter/xml/xmlmeta.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-07-04 22:34:01 +0300
committerArkadiy Illarionov <qarkai@gmail.com>2019-07-05 20:20:34 +0200
commit310cbbd5866f19d2a82bef35da66f56af90c2d08 (patch)
treebbe30b8c52d2e7aba9a45c670e9bc09c879af735 /sw/source/filter/xml/xmlmeta.cxx
parent2c147cd9ded81b66927435782e0f3d39a1fa44ba (diff)
Simplify Sequence iterations in sw/source/filter/*
Use range-based loops, STL and comphelper functions Change-Id: I8ec58bdd38061936f621cdfdbfde59a38ac86705 Reviewed-on: https://gerrit.libreoffice.org/75103 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'sw/source/filter/xml/xmlmeta.cxx')
-rw-r--r--sw/source/filter/xml/xmlmeta.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/filter/xml/xmlmeta.cxx b/sw/source/filter/xml/xmlmeta.cxx
index b7b17b2e2b65..35ffb9909a1d 100644
--- a/sw/source/filter/xml/xmlmeta.cxx
+++ b/sw/source/filter/xml/xmlmeta.cxx
@@ -117,12 +117,12 @@ void SwXMLImport::SetStatistics(
sal_uInt32 nTokens = 0;
- for (sal_Int32 i = 0; i < i_rStats.getLength(); ++i) {
+ for (const auto& rStat : i_rStats) {
for (struct statistic const* pStat = s_stats; pStat->name != nullptr;
++pStat) {
- if (i_rStats[i].Name.equalsAscii(pStat->name)) {
+ if (rStat.Name.equalsAscii(pStat->name)) {
sal_Int32 val = 0;
- if (i_rStats[i].Value >>= val) {
+ if (rStat.Value >>= val) {
if (pStat->target16 != nullptr) {
aDocStat.*(pStat->target16)
= static_cast<sal_uInt16> (val);