summaryrefslogtreecommitdiff
path: root/svgio/source/svgreader/svgstylenode.cxx
diff options
context:
space:
mode:
authorHossein <hossein@libreoffice.org>2021-10-17 15:23:42 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2021-10-17 17:04:00 +0200
commitfb1469ea68b8f87f17e1729e7c5d4cc8ebbb45bd (patch)
treed6d15dab0eb06ee7a1f1c11977c84ec130efb84d /svgio/source/svgreader/svgstylenode.cxx
parenta2adb7fa926c2b9ed053c65e130a9da336cc98b0 (diff)
Use range based for loops
* Use range based for loops where it was possible in svgio + Goal: Better readability of the code Change-Id: I6259e2391006287d5d330277dd8d700012c32932 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123712 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svgio/source/svgreader/svgstylenode.cxx')
-rw-r--r--svgio/source/svgreader/svgstylenode.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/svgio/source/svgreader/svgstylenode.cxx b/svgio/source/svgreader/svgstylenode.cxx
index 5f31482e833e..89f6200138bd 100644
--- a/svgio/source/svgreader/svgstylenode.cxx
+++ b/svgio/source/svgreader/svgstylenode.cxx
@@ -117,9 +117,9 @@ namespace svgio::svgreader
OUStringBuffer aConcatenatedSelector;
// re-combine without spaces, create a unique name (for now)
- for(size_t a(0); a < aSelectorParts.size(); a++)
+ for(const auto &a : aSelectorParts)
{
- aConcatenatedSelector.append(aSelectorParts[a]);
+ aConcatenatedSelector.append(a);
}
// CssStyles in SVG are currently not completely supported; the current idea for