summaryrefslogtreecommitdiff
path: root/svgio
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-30 15:24:30 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-30 21:04:40 +0200
commit83d8331581ab43cf35325ca674cf62d4ba5dc5ad (patch)
tree052e506efe8c6dbf2eb59935768aca7f781bfa92 /svgio
parentc90da566ed1026a70217ac8a52a90e5df5c3026e (diff)
loplugin:stringloop in svgio..xmlsecurity
Change-Id: I1b2fe5674c8350690efc3d3219b9273cc61d5b0c Reviewed-on: https://gerrit.libreoffice.org/58332 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio')
-rw-r--r--svgio/source/svgreader/svgstylenode.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svgio/source/svgreader/svgstylenode.cxx b/svgio/source/svgreader/svgstylenode.cxx
index c3ca2a5c540b..c909586724f5 100644
--- a/svgio/source/svgreader/svgstylenode.cxx
+++ b/svgio/source/svgreader/svgstylenode.cxx
@@ -114,12 +114,12 @@ namespace svgio
if(aSelectorParts.size())
{
- OUString aConcatenatedSelector;
+ OUStringBuffer aConcatenatedSelector;
// re-combine without spaces, create a unique name (for now)
for(size_t a(0); a < aSelectorParts.size(); a++)
{
- aConcatenatedSelector += aSelectorParts[a];
+ aConcatenatedSelector.append(aSelectorParts[a]);
}
// CssStyles in SVG are currently not completely supported; the current idea for
@@ -138,7 +138,7 @@ namespace svgio
// SvgStyleAttributes will not do it) will have to be adapted to make use of it.
// register new style at document for (evtl. concatenated) stylename
- const_cast< SvgDocument& >(getDocument()).addSvgStyleAttributesToMapper(aConcatenatedSelector, rNewStyle);
+ const_cast< SvgDocument& >(getDocument()).addSvgStyleAttributesToMapper(aConcatenatedSelector.makeStringAndClear(), rNewStyle);
}
}
}