From b415494bf0468b74318b61f114e2ff4ae68c00ee Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 11 May 2016 09:53:50 +0200 Subject: clang-tidy modernize-loop-convert in sw Change-Id: I1f4a0ad6658bd3154c48940296aa8edc1ea1612c Reviewed-on: https://gerrit.libreoffice.org/24876 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/uibase/fldui/fldmgr.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/uibase/fldui') diff --git a/sw/source/uibase/fldui/fldmgr.cxx b/sw/source/uibase/fldui/fldmgr.cxx index b8c04d8b5a2a..9f02086a8aa4 100644 --- a/sw/source/uibase/fldui/fldmgr.cxx +++ b/sw/source/uibase/fldui/fldmgr.cxx @@ -1604,9 +1604,9 @@ void SwFieldType::GetFieldName_() // insert infos for fields SwFieldType::s_pFieldNames = new std::vector; SwFieldType::s_pFieldNames->reserve(SAL_N_ELEMENTS(coFieldNms)); - for( sal_uInt16 nIdx = 0; nIdx < SAL_N_ELEMENTS(coFieldNms); ++nIdx ) + for(sal_uInt16 i : coFieldNms) { - const OUString aTmp(SW_RES( coFieldNms[ nIdx ] )); + const OUString aTmp(SW_RES( i )); SwFieldType::s_pFieldNames->push_back(MnemonicGenerator::EraseAllMnemonicChars( aTmp )); } } -- cgit