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 /i18nutil/source/utility | |
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 'i18nutil/source/utility')
-rw-r--r-- | i18nutil/source/utility/oneToOneMapping.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/i18nutil/source/utility/oneToOneMapping.cxx b/i18nutil/source/utility/oneToOneMapping.cxx index 10d4a0af9406..bef181b7b67e 100644 --- a/i18nutil/source/utility/oneToOneMapping.cxx +++ b/i18nutil/source/utility/oneToOneMapping.cxx @@ -69,8 +69,8 @@ oneToOneMappingWithFlag::~oneToOneMappingWithFlag() { if( mbHasIndex ) { - for (size_t i = 0; i < SAL_N_ELEMENTS(mpIndex); ++i) - delete [] mpIndex[i]; + for (UnicodePairWithFlag** i : mpIndex) + delete [] i; } } @@ -80,8 +80,8 @@ void oneToOneMappingWithFlag::makeIndex() { int current = -1; - for (size_t i = 0; i < SAL_N_ELEMENTS(mpIndex); ++i) - mpIndex[i] = nullptr; + for (UnicodePairWithFlag**& i : mpIndex) + i = nullptr; for( size_t k = 0; k < mnSize; k++ ) { |