From e1af7f0c438bc242e4562aa0286c99787b5ad544 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 21 Apr 2016 11:03:55 +0200 Subject: clang-tidy modernize-loop-convert in c* Change-Id: I77d2548f8be97792660761e6156cd24734a95aaf --- cui/source/customize/acccfg.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source/customize/acccfg.cxx') 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; } -- cgit