summaryrefslogtreecommitdiff
path: root/xmloff/source/forms/propertyexport.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmloff/source/forms/propertyexport.cxx')
-rw-r--r--xmloff/source/forms/propertyexport.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx
index 2fad2f4c98d4..c2f168917c04 100644
--- a/xmloff/source/forms/propertyexport.cxx
+++ b/xmloff/source/forms/propertyexport.cxx
@@ -484,7 +484,7 @@ namespace xmloff
Sequence< OUString > aItems;
m_xProps->getPropertyValue( _rPropertyName ) >>= aItems;
- OUString sFinalList;
+ OUStringBuffer sFinalList;
// unfortunately the OUString can't append single sal_Unicode characters ...
const OUString sQuote(&_aQuoteCharacter, 1);
@@ -504,17 +504,17 @@ namespace xmloff
"OPropertyExport::exportStringSequenceAttribute: there is an item which contains the quote character!");
if (bQuote)
- sFinalList += sQuote;
- sFinalList += *pItems;
+ sFinalList.append(sQuote);
+ sFinalList.append(*pItems);
if (bQuote)
- sFinalList += sQuote;
+ sFinalList.append(sQuote);
if (pItems != pLastElement)
- sFinalList += sSeparator;
+ sFinalList.append(sSeparator);
}
if (!sFinalList.isEmpty())
- AddAttribute(_nAttributeNamespaceKey, _pAttributeName, sFinalList);
+ AddAttribute(_nAttributeNamespaceKey, _pAttributeName, sFinalList.makeStringAndClear());
exportedProperty( _rPropertyName );
}