summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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();
}