From 579b5bcd0477c411d2ae94be9aa33e653d8a38b6 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Fri, 12 Jul 2019 00:45:46 +0300 Subject: 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 --- svtools/source/uno/unoevent.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'svtools/source/uno/unoevent.cxx') 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; -- cgit