diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-21 11:03:55 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-21 11:03:55 +0200 |
commit | e1af7f0c438bc242e4562aa0286c99787b5ad544 (patch) | |
tree | 29c7faa3556f33baa7eae5cd0aca3946afb8a560 /cui/source/customize | |
parent | 8762aa986dbca42e61cc8fb1b2c1d2ca66bcfcbe (diff) |
clang-tidy modernize-loop-convert in c*
Change-Id: I77d2548f8be97792660761e6156cd24734a95aaf
Diffstat (limited to 'cui/source/customize')
-rw-r--r-- | cui/source/customize/acccfg.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index a885da1704ff..758975b3e475 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -803,9 +803,9 @@ SfxAcceleratorConfigPage::SfxAcceleratorConfigPage( vcl::Window* pParent, const // detect max keyname width long nMaxWidth = 0; - for ( sal_uInt16 i = 0; i < KEYCODE_ARRAY_SIZE; ++i ) + for (unsigned short i : KEYCODE_ARRAY) { - long nTmp = GetTextWidth( vcl::KeyCode( KEYCODE_ARRAY[i] ).GetName() ); + long nTmp = GetTextWidth( vcl::KeyCode( i ).GetName() ); if ( nTmp > nMaxWidth ) nMaxWidth = nTmp; } |