diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-05 10:10:54 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-05 12:44:25 +0000 |
commit | f07ff7ed8a23b4982ed9cd7d9e2083c9d0928384 (patch) | |
tree | 636c69f83d25d0bfe540322b24dcbe3779c6b9b7 /sal/rtl | |
parent | 931a72efbc8708fab91e849b39a84e6b7939c7de (diff) |
clang-tidy modernize-loop-convert in oox to sax
Change-Id: If0d87b6679765fc6d1f9300c6972845cf3742b9c
Reviewed-on: https://gerrit.libreoffice.org/24674
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sal/rtl')
-rw-r--r-- | sal/rtl/hash.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sal/rtl/hash.cxx b/sal/rtl/hash.cxx index 9df367f25f7d..110283c3472b 100644 --- a/sal/rtl/hash.cxx +++ b/sal/rtl/hash.cxx @@ -58,10 +58,10 @@ getNextSize (sal_uInt32 nSize) 2097143, 4194301, 8388593, 16777213, 33554393, 67108859, 134217689 }; - for (sal_uInt32 i = 0; i < SAL_N_ELEMENTS(nPrimes); i++) + for (sal_uInt32 nPrime : nPrimes) { - if (nPrimes[i] > nSize) - return nPrimes[i]; + if (nPrime > nSize) + return nPrime; } return nSize * 2; } |