diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-26 09:08:01 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-04-26 07:43:58 +0000 |
commit | 17c4f7f0bc986ed2623a60eea99be01036899af3 (patch) | |
tree | ce231cac5d9b2d91fb175f22a45bf9dd664057f8 /editeng/source/misc | |
parent | 501720afbf226443c1121379efb661d2902113df (diff) |
clang-tidy modernize-loop-convert in e*
Change-Id: If56abefa81b41479e3ea9890dee1c43f006086de
Reviewed-on: https://gerrit.libreoffice.org/24384
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'editeng/source/misc')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index 641c59fc7d56..e3552f79bbc2 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -2475,9 +2475,8 @@ bool SvxAutoCorrectLanguageLists::MakeCombinedChanges( std::vector<SvxAutocorrWo if( bRet ) { - for ( size_t i=0; i < aDeleteEntries.size(); i++ ) + for (SvxAutocorrWord & aWordToDelete : aDeleteEntries) { - SvxAutocorrWord aWordToDelete = aDeleteEntries[i]; SvxAutocorrWord *pFoundEntry = pAutocorr_List->FindAndRemove( &aWordToDelete ); if( pFoundEntry ) { @@ -2499,9 +2498,9 @@ bool SvxAutoCorrectLanguageLists::MakeCombinedChanges( std::vector<SvxAutocorrWo } } - for ( size_t i=0; i < aNewEntries.size(); i++ ) + for (SvxAutocorrWord & aNewEntrie : aNewEntries) { - SvxAutocorrWord *pWordToAdd = new SvxAutocorrWord( aNewEntries[i].GetShort(), aNewEntries[i].GetLong(), true ); + SvxAutocorrWord *pWordToAdd = new SvxAutocorrWord( aNewEntrie.GetShort(), aNewEntrie.GetLong(), true ); SvxAutocorrWord *pRemoved = pAutocorr_List->FindAndRemove( pWordToAdd ); if( pRemoved ) { |