summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww8/ww8par.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 09:53:50 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-12 07:12:44 +0000
commitb415494bf0468b74318b61f114e2ff4ae68c00ee (patch)
tree432f9397ecf4c410e4e9767f433c60e4dc0b0087 /sw/source/filter/ww8/ww8par.cxx
parent875984617cfd6c773eb93f339929eb3fabd3e97b (diff)
clang-tidy modernize-loop-convert in sw
Change-Id: I1f4a0ad6658bd3154c48940296aa8edc1ea1612c Reviewed-on: https://gerrit.libreoffice.org/24876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par.cxx')
-rw-r--r--sw/source/filter/ww8/ww8par.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 97240285f392..48ad5d0ce09a 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -5386,9 +5386,9 @@ sal_uLong SwWW8ImplReader::CoreLoad(WW8Glossary *pGloss)
}
}
// Remove additional pictures
- for (size_t i = 0; i < vecFrameFormat.size(); ++i)
+ for (SwFrameFormat* p : vecFrameFormat)
{
- m_rDoc.getIDocumentLayoutAccess().DelLayoutFormat(vecFrameFormat[i]);
+ m_rDoc.getIDocumentLayoutAccess().DelLayoutFormat(p);
}
}
}
@@ -5848,10 +5848,8 @@ void SwWW8ImplReader::SetOutlineStyles()
const SwNumRule* pChosenWW8ListStyle = nullptr;
{
std::map<const SwNumRule*, int> aWW8ListStyleCounts;
- for (size_t nI = 0; nI < m_vColl.size(); ++nI)
+ for (SwWW8StyInf & rSI : m_vColl)
{
- SwWW8StyInf& rSI = m_vColl[nI];
-
if (!rSI.IsWW8BuiltInHeadingStyle() || !rSI.HasWW8OutlineLevel())
{
continue;