diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-12 00:45:46 +0300 |
---|---|---|
committer | Arkadiy Illarionov <qarkai@gmail.com> | 2019-07-15 18:56:33 +0200 |
commit | 579b5bcd0477c411d2ae94be9aa33e653d8a38b6 (patch) | |
tree | a38c0a8231a149ebe7f2356ad38a612529ca3e70 /svtools/source/uno/unoevent.cxx | |
parent | 574db10513be6b25f24c8cab49cbc9e63aca87d3 (diff) |
Simplify Sequence iterations in svtools
Use range-based loops, STL and comphelper functions
Change-Id: I4197b5083327998169a39389b968e1ff99f13339
Reviewed-on: https://gerrit.libreoffice.org/75440
Tested-by: Jenkins
Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'svtools/source/uno/unoevent.cxx')
-rw-r--r-- | svtools/source/uno/unoevent.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/svtools/source/uno/unoevent.cxx b/svtools/source/uno/unoevent.cxx index a0ca2b82080d..4604af791521 100644 --- a/svtools/source/uno/unoevent.cxx +++ b/svtools/source/uno/unoevent.cxx @@ -151,10 +151,8 @@ void getMacroFromAny( OUString sScriptVal; OUString sMacroVal; OUString sLibVal; - sal_Int32 nCount = aSequence.getLength(); - for (sal_Int32 i = 0; i < nCount; i++) + for (const PropertyValue& aValue : aSequence) { - PropertyValue& aValue = aSequence[i]; if (aValue.Name == sEventType) { OUString sTmp; |