summaryrefslogtreecommitdiff
path: root/ucb/source/sorter
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-06-29 22:24:22 +0300
committerArkadiy Illarionov <qarkai@gmail.com>2019-06-30 12:40:20 +0200
commit02872ceafb8adca47cce856d0e44107494ba2e21 (patch)
tree33a62ca57f6de9507ff1e9ccb7880372fbe91f77 /ucb/source/sorter
parent639698862d16310b60514277d59227eec37eb02a (diff)
Simplify Sequence iterations in ucb
Use range-based loops or replace with STL functions Change-Id: I755dec47aeeed879a032eecd50dee585c392ec59 Reviewed-on: https://gerrit.libreoffice.org/74915 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'ucb/source/sorter')
-rw-r--r--ucb/source/sorter/sortdynres.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/ucb/source/sorter/sortdynres.cxx b/ucb/source/sorter/sortdynres.cxx
index 06cd751eaf24..26e4e761e61f 100644
--- a/ucb/source/sorter/sortdynres.cxx
+++ b/ucb/source/sorter/sortdynres.cxx
@@ -287,9 +287,8 @@ void SortedDynamicResultSet::impl_notify( const ListEvent& Changes )
aRet >>= bWasFinal;
// handle the actions in the list
- for ( long i=0; i<Changes.Changes.getLength(); i++ )
+ for ( const ListAction& aAction : Changes.Changes )
{
- const ListAction aAction = Changes.Changes[i];
switch ( aAction.ListActionType )
{
case ListActionType::WELCOME: