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/uno | |
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/uno')
-rw-r--r-- | editeng/source/uno/unoipset.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/editeng/source/uno/unoipset.cxx b/editeng/source/uno/unoipset.cxx index 2bfbbed02f5a..dc3f77477a42 100644 --- a/editeng/source/uno/unoipset.cxx +++ b/editeng/source/uno/unoipset.cxx @@ -54,9 +54,8 @@ SvxItemPropertySet::~SvxItemPropertySet() uno::Any* SvxItemPropertySet::GetUsrAnyForID(sal_uInt16 nWID) const { - for ( size_t i = 0, n = aCombineList.size(); i < n; ++i ) + for (SvxIDPropertyCombine* pActual : aCombineList) { - SvxIDPropertyCombine* pActual = aCombineList[ i ]; if( pActual->nWID == nWID ) return &pActual->aAny; } @@ -75,8 +74,8 @@ void SvxItemPropertySet::AddUsrAnyForID(const uno::Any& rAny, sal_uInt16 nWID) void SvxItemPropertySet::ClearAllUsrAny() { - for ( size_t i = 0, n = aCombineList.size(); i < n; ++i ) - delete aCombineList[ i ]; + for (SvxIDPropertyCombine* i : aCombineList) + delete i; aCombineList.clear(); } |