diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-12 10:06:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-13 08:09:28 +0000 |
commit | f12b17867ef8fa2cfc2ddb7ecda9d7acc57cfa59 (patch) | |
tree | 3b0a89e34cfca550b38b92423a1de4b805d2c91c /vcl/source/window/debugevent.cxx | |
parent | 96fab0513215cc416e96e1b2089466afd0d2791c (diff) |
clang-tidy modernize-loop-convert in vcl
Change-Id: I79e97a4826bfe3918de223cccf48646a1404f901
Reviewed-on: https://gerrit.libreoffice.org/24922
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/source/window/debugevent.cxx')
-rw-r--r-- | vcl/source/window/debugevent.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/debugevent.cxx b/vcl/source/window/debugevent.cxx index 3acf9d6e7daf..cff4d023dfdd 100644 --- a/vcl/source/window/debugevent.cxx +++ b/vcl/source/window/debugevent.cxx @@ -222,13 +222,13 @@ void DebugEventInjector::InjectKeyNavEdit() double d = 0.0, nRand = getRandom(); sal_uInt16 nKey = KEY_SPACE; - for ( size_t i = 0; i < SAL_N_ELEMENTS( nWeights ); ++i ) + for (auto & rWeight : nWeights) { - d += nWeights[i].mnProb; + d += rWeight.mnProb; assert (d < 1.01); if ( nRand < d ) { - nKey = nWeights[i].mnKey; + nKey = rWeight.mnKey; break; } } |