summaryrefslogtreecommitdiff
path: root/scripting/source/basprov
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-12-19 21:53:06 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-12-20 08:15:54 +0100
commitb38e690296e48657ec8c66427a6511f42f4b0115 (patch)
tree3ddf7f7df1bdba73552efa4a97cef92dff0bb4da /scripting/source/basprov
parent45f0c58c615e1caf2bc8630924e2e4c89ac7bc4d (diff)
Simplify containers iterations in scaddins, sccomp, scripting
Use range-based loop or replace with STL functions Change-Id: I21ec2eea8f322e2792097d352fc352dc6099c7b7 Reviewed-on: https://gerrit.libreoffice.org/65461 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scripting/source/basprov')
-rw-r--r--scripting/source/basprov/basscript.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripting/source/basprov/basscript.cxx b/scripting/source/basprov/basscript.cxx
index 6eac074750a9..fbefb064dc97 100644
--- a/scripting/source/basprov/basscript.cxx
+++ b/scripting/source/basprov/basscript.cxx
@@ -266,10 +266,12 @@ namespace basprov
aOutParam.realloc( nOutParamCount );
sal_Int16* pOutParamIndex = aOutParamIndex.getArray();
Any* pOutParam = aOutParam.getArray();
- for ( OutParamMap::iterator aIt = aOutParamMap.begin(); aIt != aOutParamMap.end(); ++aIt, ++pOutParamIndex, ++pOutParam )
+ for ( const auto& rEntry : aOutParamMap )
{
- *pOutParamIndex = aIt->first;
- *pOutParam = aIt->second;
+ *pOutParamIndex = rEntry.first;
+ ++pOutParamIndex;
+ *pOutParam = rEntry.second;
+ ++pOutParam;
}
}
}