diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-28 10:24:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-28 09:31:29 +0000 |
commit | 91adb929d747ef1434fb1732fdbf51283fda78e8 (patch) | |
tree | 928b7d95ab0cb21d8a887f1f6b47d6af261f0d12 /hwpfilter | |
parent | 43b4903db3e925c652e25c34362490f8adc9c5ec (diff) |
clang-tidy modernize-loop-convert in h-l/*
Change-Id: I843528327b25d18476f8959cabba16371213a48a
Reviewed-on: https://gerrit.libreoffice.org/24460
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hinfo.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hwpfilter/source/hinfo.cxx b/hwpfilter/source/hinfo.cxx index 241ab2f80304..2e5d4b1c9a16 100644 --- a/hwpfilter/source/hinfo.cxx +++ b/hwpfilter/source/hinfo.cxx @@ -140,11 +140,11 @@ void HWPInfo::Read(HWPFile & hwpf) hwpf.Read1b(&fnchar, 1); hwpf.Read1b(&fnlinetype, 1); // border layout - for (int ii = 0; ii < 4; ++ii) + for (int & ii : bordermargin) { if (!hwpf.Read2b(tmp16)) return; - bordermargin[ii] = tmp16; + ii = tmp16; } hwpf.Read2b(&borderline, 1); @@ -217,13 +217,13 @@ void ParaShape::Read(HWPFile & hwpf) hwpf.Read1b(&condense, 1); hwpf.Read1b(&arrange_type, 1); - for (int ii = 0; ii < MAXTABS; ii++) + for (TabSet & tab : tabs) { - hwpf.Read1b(&tabs[ii].type, 1); - hwpf.Read1b(&tabs[ii].dot_continue, 1); + hwpf.Read1b(&tab.type, 1); + hwpf.Read1b(&tab.dot_continue, 1); if (!hwpf.Read2b(tmp16)) return; - tabs[ii].position = tmp16; + tab.position = tmp16; } hwpf.Read1b(&coldef.ncols, 1); hwpf.Read1b(&coldef.separator, 1); |