summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2018-11-24 23:39:59 +0300
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-25 12:29:05 +0100
commit260002b16f18634a7e1d10d4160378beb0cc0c5f (patch)
tree2528cb63cafa6c8e52ef1537802a737990db3445 /svgio
parent159b30d92f7a17f1d77417a2ed1836ea72699a0e (diff)
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgtoken.cxx6
1 files changed, 3 insertions, 3 deletions
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));
}
}