summaryrefslogtreecommitdiff
path: root/cui/source/customize/acccfg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-04-21 11:03:55 +0200
committerNoel Grandin <noel@peralex.com>2016-04-21 11:03:55 +0200
commite1af7f0c438bc242e4562aa0286c99787b5ad544 (patch)
tree29c7faa3556f33baa7eae5cd0aca3946afb8a560 /cui/source/customize/acccfg.cxx
parent8762aa986dbca42e61cc8fb1b2c1d2ca66bcfcbe (diff)
clang-tidy modernize-loop-convert in c*
Change-Id: I77d2548f8be97792660761e6156cd24734a95aaf
Diffstat (limited to 'cui/source/customize/acccfg.cxx')
-rw-r--r--cui/source/customize/acccfg.cxx4
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;
}