summaryrefslogtreecommitdiff
path: root/svl/source/items/aeitem.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-10 14:39:07 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-11 06:54:34 +0000
commit265068d65b39688b8a4756dfbcd46453dd1f9b70 (patch)
tree6936185b2f2f46b99646d00e542cdde845ef073d /svl/source/items/aeitem.cxx
parent9e0335d1db22bd3ad3f4bb249b30a00fd55558f4 (diff)
clang-tidy modernize-loop-convert in scripting to svtools
Change-Id: I98229d14109cf243839d632feabde1391ea9bad5 Reviewed-on: https://gerrit.libreoffice.org/24847 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'svl/source/items/aeitem.cxx')
-rw-r--r--svl/source/items/aeitem.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svl/source/items/aeitem.cxx b/svl/source/items/aeitem.cxx
index 730aa1718ad6..c4f9f117cf93 100644
--- a/svl/source/items/aeitem.cxx
+++ b/svl/source/items/aeitem.cxx
@@ -180,8 +180,8 @@ bool SfxAllEnumItem::IsEnabled( sal_uInt16 nValue ) const
{
if ( pDisabledValues )
{
- for ( size_t i=0; i<pDisabledValues->size(); i++ )
- if ( (*pDisabledValues)[i] == nValue )
+ for (sal_uInt16 nDisabledValue : *pDisabledValues)
+ if ( nDisabledValue == nValue )
return false;
}