diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2018-09-16 13:53:43 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-09-17 08:12:03 +0200 |
commit | 30530afaaa715473a2f9c3f068beeed5f3a98daf (patch) | |
tree | 5d5b499a75c4b363eec63e11b822de0da3cd5f60 /xmloff/source/script/XMLEventImportHelper.cxx | |
parent | ffe2b51a4919fb64a8debecb724d1e959abf343a (diff) |
Simplify containers iterations in xmloff/source/[f-t]*
Use range-based loop or replace with STL functions.
Change-Id: Ic94c7e292f44d460038d3ca99c7e4cc02958d8a3
Reviewed-on: https://gerrit.libreoffice.org/60549
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/script/XMLEventImportHelper.cxx')
-rw-r--r-- | xmloff/source/script/XMLEventImportHelper.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/xmloff/source/script/XMLEventImportHelper.cxx b/xmloff/source/script/XMLEventImportHelper.cxx index 0e45525856af..0a719dee5d31 100644 --- a/xmloff/source/script/XMLEventImportHelper.cxx +++ b/xmloff/source/script/XMLEventImportHelper.cxx @@ -40,12 +40,9 @@ XMLEventImportHelper::XMLEventImportHelper() : XMLEventImportHelper::~XMLEventImportHelper() { // delete factories - FactoryMap::iterator aEnd = aFactoryMap.end(); - for(FactoryMap::iterator aIter = aFactoryMap.begin(); - aIter != aEnd; - ++aIter) + for(auto& rEntry : aFactoryMap) { - delete aIter->second; + delete rEntry.second; } aFactoryMap.clear(); |