From 260002b16f18634a7e1d10d4160378beb0cc0c5f Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sat, 24 Nov 2018 23:39:59 +0300 Subject: Simplify containers iterations in svgio, svl, svtools Use range-based loop or replace with STL functions Change-Id: I98a3e55a14c8ac00188c5003f84194c2cc6795fb Reviewed-on: https://gerrit.libreoffice.org/63959 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svgio/source/svgreader/svgtoken.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svgio') diff --git a/svgio/source/svgreader/svgtoken.cxx b/svgio/source/svgreader/svgtoken.cxx index 4416d32c1de9..6215cc0c6db5 100644 --- a/svgio/source/svgreader/svgtoken.cxx +++ b/svgio/source/svgreader/svgtoken.cxx @@ -324,12 +324,12 @@ namespace svgio if(aCaseLindependentSVGTokenMapperList.empty()) { - for(SVGTokenMapper::const_iterator aCurrent(aSVGTokenMapperList.begin()); aCurrent != aSVGTokenMapperList.end(); ++aCurrent) + for(const auto& rCurrent : aSVGTokenMapperList) { aCaseLindependentSVGTokenMapperList.insert( SVGTokenValueType( - aCurrent->first.toAsciiLowerCase(), - aCurrent->second)); + rCurrent.first.toAsciiLowerCase(), + rCurrent.second)); } } -- cgit