summaryrefslogtreecommitdiffstats
path: root/connectivity/workben
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-03-09 15:54:13 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-09 18:31:12 +0100
commit31f96c3e0d13180447c45212158ee69e791c645a (patch)
tree3ec7744b25a3929cafd4bbdffd018a5036055ad7 /connectivity/workben
parentSeparate style colors from WidgetDefinition into its own class (diff)
downloadcore-31f96c3e0d13180447c45212158ee69e791c645a.tar.gz
core-31f96c3e0d13180447c45212158ee69e791c645a.zip
Simplify containers iterations in connectivity
Use range-based loop or replace with STL functions Change-Id: I1f7c1ea19cdc8d450b7ed88a663ba9ccb3249304 Reviewed-on: https://gerrit.libreoffice.org/68974 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'connectivity/workben')
-rw-r--r--connectivity/workben/iniParser/main.cxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/connectivity/workben/iniParser/main.cxx b/connectivity/workben/iniParser/main.cxx
index f1e432d410e5..9b9011cb14dd 100644
--- a/connectivity/workben/iniParser/main.cxx
+++ b/connectivity/workben/iniParser/main.cxx
@@ -133,18 +133,13 @@ public:
#if OSL_DEBUG_LEVEL > 1
void Dump()
{
- IniSectionMap::iterator iBegin = mAllSection.begin();
- IniSectionMap::iterator iEnd = mAllSection.end();
- for(;iBegin != iEnd;iBegin++)
+ for(auto& rEntry : mAllSection)
{
- ini_Section *aSection = &(*iBegin).second;
- for(NameValueVector::iterator itor=aSection->vVector.begin();
- itor != aSection->vVector.end();
- itor++)
+ ini_Section *aSection = &rEntry.second;
+ for(const auto& rValue : aSection->vVector)
{
- struct ini_NameValue * aValue = &(*itor);
- SAL_WARN("connectivity",
- " section=" << aSection->sName << " name=" << aValue->sName << " value=" << aValue->sValue );
+ SAL_WARN("connectivity",
+ " section=" << aSection->sName << " name=" << rValue.sName << " value=" << rValue.sValue );
}
}