summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-07-28 18:01:28 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-07-29 12:14:22 +0200
commite593b623dad9456d3452c4c537479596bcd0b00b (patch)
treed9d21031cdd75df25749de8c6ae5b9c0afb1c196 /test
parenta612d738a8c909e18ed89675432ca42b376ef624 (diff)
loplugin:stringloop in various
Change-Id: Ic2436c6d94729211cd5bc72fee18af228381e4a3 Reviewed-on: https://gerrit.libreoffice.org/58250 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'test')
-rw-r--r--test/source/mtfxmldump.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx
index cd21df3ff71e..b298f736f57f 100644
--- a/test/source/mtfxmldump.cxx
+++ b/test/source/mtfxmldump.cxx
@@ -670,13 +670,13 @@ void MetafileXmlDump::writeXml(const GDIMetaFile& rMetaFile, tools::XmlWriter& r
if (pMetaTextArrayAction->GetDXArray())
{
rWriter.startElement("dxarray");
- OUString sDxLengthString;
+ OUStringBuffer sDxLengthString;
for (sal_Int32 i = 0; i < aLength - aIndex; ++i)
{
- sDxLengthString += OUString::number(pMetaTextArrayAction->GetDXArray()[aIndex + i]);
- sDxLengthString += " ";
+ sDxLengthString.append(OUString::number(pMetaTextArrayAction->GetDXArray()[aIndex + i]));
+ sDxLengthString.append(" ");
}
- rWriter.content(sDxLengthString);
+ rWriter.content(sDxLengthString.makeStringAndClear());
rWriter.endElement();
}